SCCS-vsn: sys/kern/vfs_lookup.c 7.38
SCCS-vsn: sys/ufs/ffs/ufs_lookup.c 7.41
SCCS-vsn: sys/ufs/ufs/ufs_lookup.c 7.41
SCCS-vsn: sys/ufs/ffs/ufs_vnops.c 7.81
SCCS-vsn: sys/ufs/ufs/ufs_vnops.c 7.81
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)vfs_lookup.c 7.37 (Berkeley) %G%
+ * @(#)vfs_lookup.c 7.38 (Berkeley) %G%
#ifdef NAMEI_DIAGNOSTIC
printf("not found\n");
#endif
#ifdef NAMEI_DIAGNOSTIC
printf("not found\n");
#endif
- if (cnp->cn_nameiop == LOOKUP || cnp->cn_nameiop == DELETE ||
- error != ENOENT || *cp != 0)
+ if (error != EJUSTRETURN)
goto bad;
/*
* If creating and at end of pathname, then can consider
goto bad;
/*
* If creating and at end of pathname, then can consider
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)ufs_lookup.c 7.40 (Berkeley) %G%
+ * @(#)ufs_lookup.c 7.41 (Berkeley) %G%
*/
#include <sys/param.h>
*/
#include <sys/param.h>
cnp->cn_flags |= SAVENAME;
if (!lockparent)
IUNLOCK(dp);
cnp->cn_flags |= SAVENAME;
if (!lockparent)
IUNLOCK(dp);
}
/*
* Insert name into cache (as non-existent) if appropriate.
}
/*
* Insert name into cache (as non-existent) if appropriate.
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)ufs_vnops.c 7.80 (Berkeley) %G%
+ * @(#)ufs_vnops.c 7.81 (Berkeley) %G%
*/
#include <sys/param.h>
*/
#include <sys/param.h>
if (*vpp != NULL)
panic("leaf should be empty");
#endif
if (*vpp != NULL)
panic("leaf should be empty");
#endif
- if (cnp->cn_nameiop == LOOKUP || cnp->cn_nameiop == DELETE ||
- error != ENOENT)
+ if (error != EJUSTRETURN)
goto bad;
/*
* If creating and at end of pathname, then can consider
goto bad;
/*
* If creating and at end of pathname, then can consider
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)ufs_lookup.c 7.40 (Berkeley) %G%
+ * @(#)ufs_lookup.c 7.41 (Berkeley) %G%
*/
#include <sys/param.h>
*/
#include <sys/param.h>
cnp->cn_flags |= SAVENAME;
if (!lockparent)
IUNLOCK(dp);
cnp->cn_flags |= SAVENAME;
if (!lockparent)
IUNLOCK(dp);
}
/*
* Insert name into cache (as non-existent) if appropriate.
}
/*
* Insert name into cache (as non-existent) if appropriate.
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)ufs_vnops.c 7.80 (Berkeley) %G%
+ * @(#)ufs_vnops.c 7.81 (Berkeley) %G%
*/
#include <sys/param.h>
*/
#include <sys/param.h>
if (*vpp != NULL)
panic("leaf should be empty");
#endif
if (*vpp != NULL)
panic("leaf should be empty");
#endif
- if (cnp->cn_nameiop == LOOKUP || cnp->cn_nameiop == DELETE ||
- error != ENOENT)
+ if (error != EJUSTRETURN)
goto bad;
/*
* If creating and at end of pathname, then can consider
goto bad;
/*
* If creating and at end of pathname, then can consider