diff options
author | dyson <dyson@FreeBSD.org> | 1998-02-15 04:17:09 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1998-02-15 04:17:09 +0000 |
commit | fbe6fe8df622ec2f41d4c28cf3cb1849007a8239 (patch) | |
tree | f9729ef6b9322722362278acc06d2f4c6b5c3a4a /sys/kern/vfs_lookup.c | |
parent | 09f4c257137ec70d7900d80b88bc4220fc799c2d (diff) | |
download | FreeBSD-src-fbe6fe8df622ec2f41d4c28cf3cb1849007a8239.zip FreeBSD-src-fbe6fe8df622ec2f41d4c28cf3cb1849007a8239.tar.gz |
Make the rootdir handling more consistent. Now, processes always
have a root vnode associated with them, and no special checks for
the null case are needed.
Submitted by: terry@freebsd.org
Diffstat (limited to 'sys/kern/vfs_lookup.c')
-rw-r--r-- | sys/kern/vfs_lookup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c index d3934b3..3d258cc 100644 --- a/sys/kern/vfs_lookup.c +++ b/sys/kern/vfs_lookup.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_lookup.c 8.4 (Berkeley) 2/16/94 - * $Id: vfs_lookup.c,v 1.24 1998/02/04 22:32:40 eivind Exp $ + * $Id: vfs_lookup.c,v 1.25 1998/02/06 12:13:30 eivind Exp $ */ #include "opt_ktrace.h" @@ -132,8 +132,8 @@ namei(ndp) /* * Get starting point for the translation. */ - if ((ndp->ni_rootdir = fdp->fd_rdir) == NULL) - ndp->ni_rootdir = rootvnode; + ndp->ni_rootdir = fdp->fd_rdir; + dp = fdp->fd_cdir; VREF(dp); for (;;) { |