diff options
author | Pedro Martelletto <pedro@cvs.openbsd.org> | 2004-07-11 16:42:46 +0000 |
---|---|---|
committer | Pedro Martelletto <pedro@cvs.openbsd.org> | 2004-07-11 16:42:46 +0000 |
commit | 6fc82e48c02371bd21f9dc19efa8ea51415514fe (patch) | |
tree | 5ddd0d8d14ce272e91537fa60f2b27d12c2229ba /sys | |
parent | 9f34aab0df6d3d51ca67b12a966b93d61219da05 (diff) |
save an (eventually existent) namei process context when going over
symbolic links. fixes pr 3842, ok tedu@, art@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_lookup.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |