From 451f650d2cce4c75f9e22834ed4664dea1f198bf Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Wed, 13 Sep 1995 16:38:40 +0000 Subject: (diskfs_lookup): Require NPP set for RENAME too. --- ufs/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ufs/dir.c') 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) -- cgit v1.2.3