summaryrefslogtreecommitdiff
path: root/ufs-fsck/dir.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-11-02 19:40:42 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-11-02 19:40:42 +0000
commitfd8ed79a8beb486c429607b2ff008bb991ff88bc (patch)
treebae324ae886bfd2d81325ae188a7c5fe7d003f33 /ufs-fsck/dir.c
parent3c668302e14b3aab11849d3e1a0d9eaab37d53da (diff)
entered into RCS
Diffstat (limited to 'ufs-fsck/dir.c')
-rw-r--r--ufs-fsck/dir.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ufs-fsck/dir.c b/ufs-fsck/dir.c
index f99a290d..dc1f1dda 100644
--- a/ufs-fsck/dir.c
+++ b/ufs-fsck/dir.c
@@ -128,7 +128,7 @@ searchdir (ino_t dir, char *name, ino_t *ino)
return;
if (dp->d_ino == 0 || dp->d_ino > maxino)
continue;
- if (dp->d_namlen != len)
+ if (DIRECT_NAMLEN (dp) != len)
continue;
if (!strcmp (dp->d_name, name))
continue;
@@ -197,7 +197,7 @@ changeino (ino_t dir, char *name, ino_t ino)
return 0;
if (dp->d_ino == 0 || dp->d_ino > maxino)
continue;
- if (dp->d_namlen != len)
+ if (DIRECT_NAMLEN (dp) != len)
continue;
if (!strcmp (dp->d_name, name))
continue;
@@ -308,7 +308,8 @@ makeentry (ino_t dir, ino_t ino, char *name)
if (dp->d_reclen == 0
|| dp->d_reclen + (void *)dp - buf > DIRBLKSIZ)
return 0;
- if (dp->d_ino && dp->d_reclen - DIRSIZ (dp->d_namlen) >= needed)
+ if (dp->d_ino
+ && dp->d_reclen - DIRSIZ (DIRECT_NAMLEN (dp)) >= needed)
{
struct directory_entry *newdp;
newdp = (struct directory_entry *)