From 080a321e4a2597143772f3b1b9e7f3d29f0ab072 Mon Sep 17 00:00:00 2001 From: bde Date: Thu, 5 Feb 2004 15:47:46 +0000 Subject: 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. --- sbin/fsck_msdosfs/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sbin/fsck_msdosfs/main.c') diff --git a/sbin/fsck_msdosfs/main.c b/sbin/fsck_msdosfs/main.c index b0e852e..37bfb6e 100644 --- a/sbin/fsck_msdosfs/main.c +++ b/sbin/fsck_msdosfs/main.c @@ -51,9 +51,9 @@ static const char rcsid[] = int alwaysno; /* assume "no" for all questions */ int alwaysyes; /* assume "yes" for all questions */ -int force; /* force check even the fs is clean */ int preen; /* set when preening */ int rdonly; /* device is opened read only (supersedes above) */ +int skipclean; /* skip clean file systems if preening */ static void usage(void) __dead2; @@ -71,11 +71,11 @@ main(int argc, char **argv) int ret = 0, erg; int ch; - force = 0; + skipclean = 1; while ((ch = getopt(argc, argv, "fFnpy")) != -1) { switch (ch) { case 'f': - force = 1; + skipclean = 0; break; case 'F': /* -- cgit v1.1