diff options
author | bde <bde@FreeBSD.org> | 2004-02-05 15:47:46 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2004-02-05 15:47:46 +0000 |
commit | 080a321e4a2597143772f3b1b9e7f3d29f0ab072 (patch) | |
tree | 7b8a5ecdcdfe692df4c818fc59dcbeac44d3f272 /sbin/fsck_msdosfs/check.c | |
parent | 9cf605d618e7c575664f866650356b95ee967870 (diff) | |
download | FreeBSD-src-080a321e4a2597143772f3b1b9e7f3d29f0ab072.zip FreeBSD-src-080a321e4a2597143772f3b1b9e7f3d29f0ab072.tar.gz |
Fixed operation of -f to match its documentation and fsck_ffs. It
has now has no effect except in combination with -p, and plain fsck
checks all file systems instead of skipping clean ones for msdosfs
only.
Renamed the force flag to skipclean and inverted its logic as in
fsck_ffs.
Diffstat (limited to 'sbin/fsck_msdosfs/check.c')
-rw-r--r-- | sbin/fsck_msdosfs/check.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/fsck_msdosfs/check.c b/sbin/fsck_msdosfs/check.c index 6a40749..48ae5ca 100644 --- a/sbin/fsck_msdosfs/check.c +++ b/sbin/fsck_msdosfs/check.c @@ -84,9 +84,8 @@ checkfilesys(const char *fname) return 8; } - if (checkdirty(dosfs, &boot) && !force) { - if (preen) - printf("%s: ", fname); + if (skipclean && preen && checkdirty(dosfs, &boot)) { + printf("%s: ", fname); printf("FILESYSTEM CLEAN; SKIPPING CHECKS\n"); ret = 0; goto out; |