summaryrefslogtreecommitdiff
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
commit639d32ce79bfb66727ccefd136cfb5f3486d79ec (patch)
tree9e8aaf5ced0c341b82ee3d828f3cc869bb97977b
parentb6d7707a397cec1abccdf558ba180112cd04a149 (diff)
(diskfs_lookup): Require NPP set for RENAME too.
-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)