summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_msdosfs/main.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2004-02-05 15:47:46 +0000
committerbde <bde@FreeBSD.org>2004-02-05 15:47:46 +0000
commit080a321e4a2597143772f3b1b9e7f3d29f0ab072 (patch)
tree7b8a5ecdcdfe692df4c818fc59dcbeac44d3f272 /sbin/fsck_msdosfs/main.c
parent9cf605d618e7c575664f866650356b95ee967870 (diff)
downloadFreeBSD-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/main.c')
-rw-r--r--sbin/fsck_msdosfs/main.c6
1 files changed, 3 insertions, 3 deletions
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':
/*
OpenPOWER on IntegriCloud