summaryrefslogtreecommitdiff
path: root/ufs/dir.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-03-20 21:13:17 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-03-20 21:13:17 +0000
commit22f6258e833068204f028ae02683249d287387a2 (patch)
treea2506172ea9b0d64631b774669f19aac6c2545df /ufs/dir.c
parent0e7b2edd364a2662cc1fe9a7dea4b1e18a96c662 (diff)
(diskfs_lookup_hard): Don't do final permission checking here.
Diffstat (limited to 'ufs/dir.c')
-rw-r--r--ufs/dir.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/ufs/dir.c b/ufs/dir.c
index 73ed5f02..843735c2 100644
--- a/ufs/dir.c
+++ b/ufs/dir.c
@@ -238,16 +238,6 @@ diskfs_lookup_hard (struct node *dp, char *name, enum lookup_type type,
assert (0);
}
- /* If we will be modifying the directory, make sure it's allowed. */
- if (type == RENAME
- || (type == REMOVE && inum)
- || (type == CREATE && !inum))
- {
- err = diskfs_checkdirmod (dp, np, cred);
- if (err)
- goto out;
- }
-
if ((type == CREATE || type == RENAME) && !inum && ds && ds->stat == LOOKING)
{
/* We didn't find any room, so mark ds to extend the dir */