summaryrefslogtreecommitdiff
path: root/ufs/dir.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-09-16 18:48:26 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-09-16 18:48:26 +0000
commitefeda0ae54da67f72c357340975a714b53094548 (patch)
treeeb61e4c19972940bfb05663bbf58d16bc0344839 /ufs/dir.c
parentfb1d398615fdd06a1c66b7d62bba9ef529b697f0 (diff)
Formerly dir.c.~27~
Diffstat (limited to 'ufs/dir.c')
-rw-r--r--ufs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ufs/dir.c b/ufs/dir.c
index d0bf151d..35760842 100644
--- a/ufs/dir.c
+++ b/ufs/dir.c
@@ -330,7 +330,7 @@ dirscanblock (vm_address_t blockaddr, struct node *dp, int idx, char *name,
|| memchr (entry->d_name, '\0', DIRECT_NAMLEN (entry)))
{
fprintf (stderr, "Bad directory entry: inode: %d offset: %d\n",
- dp->dn->number, currentoff - blockaddr);
+ dp->dn->number, currentoff - blockaddr + idx * DIRBLKSIZ);
return ENOENT;
}