fix a goof that i made; return *before* nfs_lock() is called...

This commit is contained in:
cgd 1993-12-07 04:47:41 +00:00
parent 2c216884a8
commit 5c50cb4631

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)nfs_vnops.c 7.60 (Berkeley) 5/24/91
* $Id: nfs_vnops.c,v 1.13 1993/11/20 09:40:55 cgd Exp $
* $Id: nfs_vnops.c,v 1.14 1993/12/07 04:47:41 cgd Exp $
*/
/*
@ -492,11 +492,12 @@ nfs_lookup(vp, ndp, p)
nfsm_request(vp, NFSPROC_LOOKUP, p, 0);
nfsmout:
if (error) {
if ((flag == CREATE || flag == RENAME) &&
*ndp->ni_next == '\0' && error == ENOENT)
error = EJUSTRETURN;
if (lockparent || (flag != CREATE && flag != RENAME) ||
*ndp->ni_next != 0)
nfs_lock(vp);
if ((flag == CREATE || flag == RENAME) && error == ENOENT)
error = EJUSTRETURN;
if (flag != LOOKUP && *ndp->ni_next == 0)
ndp->ni_nameiop |= SAVENAME;
return (error);