summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-10-18 17:11:40 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-10-18 17:11:40 +0000
commit59e1e46c03640376a7a8ec449aecd8c7c04faa36 (patch)
tree8809b2ea5853493d47d3b1f90faea911fda59d75
parentc073802253a8c368785bcc761b7ccfbfc1aec68b (diff)
Formerly dir.c.~7~
-rw-r--r--ufs-fsck/dir.c4
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]++;