diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-10-18 17:11:40 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-10-18 17:11:40 +0000 |
commit | e6fe942584d3e678b28dab10ba3eeb78b4d87c3d (patch) | |
tree | 75189c14d4cc8cba78d0646a92bb430bd10651d0 /ufs-fsck/dir.c | |
parent | d9a476c467a9dd9e5a7b24668fd62e6656f35f8d (diff) |
Formerly dir.c.~7~
Diffstat (limited to 'ufs-fsck/dir.c')
-rw-r--r-- | ufs-fsck/dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ufs-fsck/dir.c b/ufs-fsck/dir.c index 0a0c0ac2..c8ad46ed 100644 --- a/ufs-fsck/dir.c +++ b/ufs-fsck/dir.c @@ -38,7 +38,7 @@ record_directory (struct dinode *dp, ino_t number) dnp->i_number = number; dnp->i_parent = dnp->i_dotdot = 0; dnp->i_isize = dp->di_size; - dnp->i_numblks = blks * sizeof (daddr_t); + dnp->i_numblks = blks; bcopy (dp->di_db, dnp->i_blks, blks); if (dirarrayused == dirarraysize) @@ -392,7 +392,7 @@ allocdir (ino_t parent, ino_t request, mode_t mode) return 0; if (!makeentry (ino, ino, ".")) goto bad; - if (!makeentry (ino, ino, "..")) + if (!makeentry (ino, parent, "..")) goto bad; linkfound[ino]++; |