summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ufs/dir.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/ufs/dir.c b/ufs/dir.c
index 16364071..73ed5f02 100644
--- a/ufs/dir.c
+++ b/ufs/dir.c
@@ -120,12 +120,6 @@ diskfs_lookup_hard (struct node *dp, char *name, enum lookup_type type,
if (namelen > MAXNAMLEN)
return ENAMETOOLONG;
- if (!S_ISDIR (dp->dn_stat.st_mode))
- return ENOTDIR;
- err = diskfs_access (dp, S_IEXEC, cred);
- if (err)
- return err;
-
try_again:
if (ds)
{