fix typo and allow creations to work right. this is in a questionably
correct chunk of code; author contacted.
This commit is contained in:
parent
caa63cf2fd
commit
bb5d305ea8
|
@ -37,7 +37,7 @@
|
|||
* From:
|
||||
* Id: lofs_vnops.c,v 4.1 1993/12/17 10:47:45 jsp Rel
|
||||
*
|
||||
* $Id: lofs_vnops.c,v 1.1 1994/01/05 14:15:37 cgd Exp $
|
||||
* $Id: lofs_vnops.c,v 1.2 1994/02/14 19:02:54 cgd Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -115,7 +115,7 @@ lofs_lookup(dvp, ndp, p)
|
|||
*/
|
||||
error = VOP_LOOKUP(targetdvp, ndp, p);
|
||||
if (error) {
|
||||
if (flag == LOOKUP || flag == RENAME ||
|
||||
if (flag == CREATE || flag == RENAME ||
|
||||
error != ENOENT || *ndp->ni_next != 0) {
|
||||
vrele(targetdvp);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue