summaryrefslogtreecommitdiff
path: root/ufs/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'ufs/dir.c')
-rw-r--r--ufs/dir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ufs/dir.c b/ufs/dir.c
index 62bf3302..c67d2ee1 100644
--- a/ufs/dir.c
+++ b/ufs/dir.c
@@ -832,6 +832,7 @@ diskfs_get_directs (struct node *dp,
if (entryp->d_ino)
{
bcopy (bufp, datap, DIRSIZ (entryp->d_namlen));
+ ((struct direct *)bufp)->d_reclen = DIRSIZ (entryp->d_namlen);
i++;
datap += DIRSIZ (entryp->d_namlen);
}