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
commit95ad36aca16849157dc8281f096e4c539b511a96 (patch)
treedda5e2634c506c8861320267a7481c7e15766dd6 /ufs-fsck/dir.c
parent50e3959d6d8fa7ade5f82ea85c6f65777eee0f5f (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 *)