summaryrefslogtreecommitdiff
path: root/ufs-fsck
diff options
context:
space:
mode:
Diffstat (limited to 'ufs-fsck')
-rw-r--r--ufs-fsck/pass1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ufs-fsck/pass1.c b/ufs-fsck/pass1.c
index a59657fc..5d4c8dd8 100644
--- a/ufs-fsck/pass1.c
+++ b/ufs-fsck/pass1.c
@@ -26,6 +26,7 @@
Set them in the global block map. For each file, if a block is found
allocated twice, then record the block and inode in DUPLIST.
Initialize INODESTATE, LINKCOUNT, and TYPEMAP. */
+void
pass1 ()
{
ino_t number;
@@ -211,7 +212,7 @@ pass1 ()
/* Decode type and set NDB
also set inodestate correctly. */
- inodestate[number] = FILE;
+ inodestate[number] = REG;
switch (type)
{
case IFBLK: