summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-03-20 20:54:26 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-03-20 20:54:26 +0000
commit9ab5d218ddf45b1f08a147db684ffa17e7e24322 (patch)
tree278fba004d2bb79e66b04749d783d026209c0ef6
parent049354a66a11b9213a3e4189606ff1d99f039431 (diff)
(diskfs_S_dir_lookup): Don't check cache here.
-rw-r--r--libdiskfs/dir-lookup.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/libdiskfs/dir-lookup.c b/libdiskfs/dir-lookup.c
index 8667fd3b..59e850cd 100644
--- a/libdiskfs/dir-lookup.c
+++ b/libdiskfs/dir-lookup.c
@@ -125,24 +125,7 @@ diskfs_S_dir_lookup (struct protid *dircred,
error = diskfs_lookup (dnp, path, CREATE, &np, ds, dircred);
}
else
- {
- /* XXX should be done in wrapper */
- np = diskfs_check_cache (dnp, path);
- if (np)
- {
- /* Verify that we were allowed in. XXX should be done
- in wrapper for diskfs_lookup */
- assert (S_ISDIR (dp->dn_stat.st_mode));
- error = diskfs_access (dp, S_IEXEC, cred);
- if (error)
- {
- diskfs_nrele (np);
- np = 0;
- }
- }
- else
- error = diskfs_lookup (dnp, path, LOOKUP, &np, 0, dircred);
- }
+ error = diskfs_lookup (dnp, path, LOOKUP, &np, 0, dircred);
if (lastcomp && create && excl && (!error || error == EAGAIN))
error = EEXIST;