diff options
| author | Bruce Evans <bde@FreeBSD.org> | 1997-02-18 06:46:41 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 1997-02-18 06:46:41 +0000 |
| commit | 78fd7b3d49fd78a2a8ca222dce4247b2de764a54 (patch) | |
| tree | 7afcd17a08c63bc14ace9e156d83e02a89fff3fe | |
| parent | a88368cfdf5c8e01d6ba9e9b06bd326399cc60a8 (diff) | |
Notes
| -rw-r--r-- | sys/kern/vfs_lookup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c index 120821d7e877..40f692c67755 100644 --- a/sys/kern/vfs_lookup.c +++ b/sys/kern/vfs_lookup.c @@ -278,7 +278,8 @@ lookup(ndp) wantparent = cnp->cn_flags & (LOCKPARENT | WANTPARENT); docache = (cnp->cn_flags & NOCACHE) ^ NOCACHE; if (cnp->cn_nameiop == DELETE || - (wantparent && cnp->cn_nameiop != CREATE)) + (wantparent && cnp->cn_nameiop != CREATE && + cnp->cn_nameiop != LOOKUP)) docache = 0; rdonly = cnp->cn_flags & RDONLY; ndp->ni_dvp = NULL; |
