From 65928cad92e38495a5aea3120094f81600cfedad Mon Sep 17 00:00:00 2001 From: bde Date: Sat, 20 Dec 1997 21:36:58 +0000 Subject: Don't attempt to print the statistics for a "clean" preened filesystem when there isn't even a filesystem. Attempting to print them tended to cause SIGSEGV or SIGFPE depending on how far setup() got before it returned 0. This was broken in the previous revision by removing a return statement that the previous case depended on falling into. PR: 4840 (fixed by this commit) PR: 2537 (possibly fixed by Lite2 merge and later changes. setup() does more checking now) --- sbin/fsck_ifs/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbin/fsck_ifs') diff --git a/sbin/fsck_ifs/main.c b/sbin/fsck_ifs/main.c index fbeb3ee..c4ee7cb 100644 --- a/sbin/fsck_ifs/main.c +++ b/sbin/fsck_ifs/main.c @@ -195,7 +195,7 @@ checkfilesys(filesys, mntpt, auxdata, child) case 0: if (preen) pfatal("CAN'T CHECK FILE SYSTEM."); - /* fall through */ + return (0); case -1: pwarn("clean, %ld free ", sblock.fs_cstotal.cs_nffree + sblock.fs_frag * sblock.fs_cstotal.cs_nbfree); -- cgit v1.1