summaryrefslogtreecommitdiff
path: root/ufs
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-08-01 00:59:34 +0000
committerRoland McGrath <roland@gnu.org>2002-08-01 00:59:34 +0000
commit25a921e6e16dfad15b5cdb37f0b6e81eacb8afe1 (patch)
tree9073b26eced4e30d877b6dde14e06dcdc4baa9ca /ufs
parentb8a0323832dcb9feb0823e0ccad0d8db74a06bb9 (diff)
2002-07-31 Roland McGrath <roland@frob.com>
* dir.c (diskfs_direnter_hard): Fix test in last change.
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 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);