summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_msdosfs/main.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2003-12-27 14:02:52 +0000
committerbde <bde@FreeBSD.org>2003-12-27 14:02:52 +0000
commit10a5b874bb15bcfcce6053d3892bce36ef44c620 (patch)
treee0dcac8ccaa11b217f905bfb35665206938741af /sbin/fsck_msdosfs/main.c
parent7fe60e37640510044a2a6bfa5b81da84d9f1f2c8 (diff)
downloadFreeBSD-src-10a5b874bb15bcfcce6053d3892bce36ef44c620.zip
FreeBSD-src-10a5b874bb15bcfcce6053d3892bce36ef44c620.tar.gz
Expanded the comment about the -F flag.
Fixed a nearby style bug (unreachable break).
Diffstat (limited to 'sbin/fsck_msdosfs/main.c')
-rw-r--r--sbin/fsck_msdosfs/main.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sbin/fsck_msdosfs/main.c b/sbin/fsck_msdosfs/main.c
index eb49486..b0e852e 100644
--- a/sbin/fsck_msdosfs/main.c
+++ b/sbin/fsck_msdosfs/main.c
@@ -78,9 +78,15 @@ main(int argc, char **argv)
force = 1;
break;
case 'F':
- /* We can never run in background */
+ /*
+ * We can never run in the background. We must exit
+ * silently with a nonzero exit code so that fsck(8)
+ * can probe our support for -F. The exit code
+ * doesn't really matter, but we use an unusual one
+ * in case someone tries -F directly. The -F flag
+ * is intentionally left out of the usage message.
+ */
exit(5);
- break;
case 'n':
alwaysno = 1;
alwaysyes = preen = 0;
OpenPOWER on IntegriCloud