From 6fc82e48c02371bd21f9dc19efa8ea51415514fe Mon Sep 17 00:00:00 2001 From: Pedro Martelletto Date: Sun, 11 Jul 2004 16:42:46 +0000 Subject: save an (eventually existent) namei process context when going over symbolic links. fixes pr 3842, ok tedu@, art@ --- sys/kern/vfs_lookup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c index 87a73ff1c1d..72e07f8f400 100644 --- a/sys/kern/vfs_lookup.c +++ b/sys/kern/vfs_lookup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_lookup.c,v 1.27 2004/05/14 04:00:33 tedu Exp $ */ +/* $OpenBSD: vfs_lookup.c,v 1.28 2004/07/11 16:42:45 pedro Exp $ */ /* $NetBSD: vfs_lookup.c,v 1.17 1996/02/09 19:00:59 christos Exp $ */ /* @@ -209,7 +209,7 @@ namei(ndp) auio.uio_offset = 0; auio.uio_rw = UIO_READ; auio.uio_segflg = UIO_SYSSPACE; - auio.uio_procp = (struct proc *)0; + auio.uio_procp = cnp->cn_proc; auio.uio_resid = MAXPATHLEN; error = VOP_READLINK(ndp->ni_vp, &auio, cnp->cn_cred); if (error) { -- cgit v1.2.3