summaryrefslogtreecommitdiff
path: root/ufs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-09-13 16:38:40 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-09-13 16:38:40 +0000
commit451f650d2cce4c75f9e22834ed4664dea1f198bf (patch)
treef99561351963a80a18e73fa42b93740cf69972ae /ufs
parent04c07411536d09ca5e5f5eb243e918f02db0b71b (diff)
(diskfs_lookup): Require NPP set for RENAME too.
Diffstat (limited to 'ufs')
-rw-r--r--ufs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ufs/dir.c b/ufs/dir.c
index ab98d4bb..ff79cc1e 100644
--- a/ufs/dir.c
+++ b/ufs/dir.c
@@ -100,7 +100,7 @@ diskfs_lookup (struct node *dp, char *name, enum lookup_type type,
int blockaddr;
int idx;
- if (type == REMOVE)
+ if ((type == REMOVE) || (type == RENAME))
assert (npp);
if (npp)