diff options
author | mckusick <mckusick@FreeBSD.org> | 2001-04-25 19:05:23 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 2001-04-25 19:05:23 +0000 |
commit | 0a79c825c9cbf12436588f90f2eb3455a2396ad6 (patch) | |
tree | 427857e89d1463bc976fc7d28f2809f198d34e16 | |
parent | 026a60d7920448487a0d2accf449d1c63a5b309e (diff) | |
download | FreeBSD-src-0a79c825c9cbf12436588f90f2eb3455a2396ad6.zip FreeBSD-src-0a79c825c9cbf12436588f90f2eb3455a2396ad6.tar.gz |
Add support for -F flag (trivial as background check is never possible).
-rw-r--r-- | sbin/fsck_ifs/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sbin/fsck_ifs/main.c b/sbin/fsck_ifs/main.c index 2c263da..49ba348 100644 --- a/sbin/fsck_ifs/main.c +++ b/sbin/fsck_ifs/main.c @@ -84,7 +84,7 @@ main(argc, argv) sync(); skipclean = 1; markclean = 1; - while ((ch = getopt(argc, argv, "b:c:dfm:npy")) != -1) { + while ((ch = getopt(argc, argv, "b:c:dfFm:npy")) != -1) { switch (ch) { case 'b': skipclean = 0; @@ -105,6 +105,11 @@ main(argc, argv) skipclean = 0; break; + case 'F': + /* We can never run in background */ + exit(EEXIT); + break; + case 'm': lfmode = argtoi('m', "mode", optarg, 8); if (lfmode &~ 07777) |