From 192b1a04ae6308ecc35f0ae89db9c5071b867da8 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 1 Aug 2002 00:59:34 +0000 Subject: 2002-07-31 Roland McGrath * dir.c (diskfs_direnter_hard): Fix test in last change. --- ufs/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ufs') diff --git a/ufs/dir.c b/ufs/dir.c index b67e45f6..83b30e72 100644 --- a/ufs/dir.c +++ b/ufs/dir.c @@ -585,7 +585,7 @@ diskfs_direnter_hard(struct node *dp, assert (needed <= DIRBLKSIZ); oldsize = dp->dn_stat.st_size; - if ((off_t)(oldsize + DIRBLKSIZ) != dp->dn_stat.st_size) + if ((off_t)(oldsize + DIRBLKSIZ) != dp->dn_stat.st_size + DIRBLKSIZ) { /* We can't possibly map the whole directory in. */ munmap ((caddr_t) ds->mapbuf, ds->mapextent); -- cgit v1.2.3