diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-12-29 15:02:59 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-12-29 15:02:59 +0000 |
commit | cc37ef4acf44159667956a250a8a0c984042ec2d (patch) | |
tree | 76cf94f4c933f76f33d98da3b02e515625db1b38 /sbin/fsck_ffs/main.c | |
parent | cc0b4050ea2d5d8f09a201cb70193930ad1d7b5d (diff) |
Don't mark filesystem clean if fsck needs to be rerun (PR 1572)
Diffstat (limited to 'sbin/fsck_ffs/main.c')
-rw-r--r-- | sbin/fsck_ffs/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/fsck_ffs/main.c b/sbin/fsck_ffs/main.c index f1e8d722205..de81f967257 100644 --- a/sbin/fsck_ffs/main.c +++ b/sbin/fsck_ffs/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.16 2000/01/22 20:24:56 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.17 2000/12/29 15:02:58 angelos Exp $ */ /* $NetBSD: main.c,v 1.22 1996/10/11 20:15:48 thorpej Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 1/23/94"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.16 2000/01/22 20:24:56 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.17 2000/12/29 15:02:58 angelos Exp $"; #endif #endif /* not lint */ @@ -306,7 +306,7 @@ checkfilesys(filesys, mntpt, auxdata, child) bwrite(fswritefd, (char *)&sblock, fsbtodb(&sblock, cgsblock(&sblock, cylno)), SBSIZE); } - ckfini(1); + ckfini(!rerun); /* Don't mark fs clean if fsck needs to be re-run */ free(blockmap); free(statemap); free((char *)lncntp); |