From 10a5b874bb15bcfcce6053d3892bce36ef44c620 Mon Sep 17 00:00:00 2001 From: bde Date: Sat, 27 Dec 2003 14:02:52 +0000 Subject: Expanded the comment about the -F flag. Fixed a nearby style bug (unreachable break). --- sbin/fsck_msdosfs/main.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'sbin/fsck_msdosfs/main.c') 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; -- cgit v1.1