summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2018-02-10 22:48:48 +0100
committerLeah Neukirchen <leah@vuxu.org>2018-02-10 22:48:48 +0100
commitb5e3302af7fd5e91ffab9567a6837a69398d5287 (patch)
tree67b452befddd191200ed7ac1d3ebaebbe063f625
parent71f6f6ece5dc16ef202c7e83d4e36ab94449abdd (diff)
fsck: support -a as -p for compatibility with other fsck
-rw-r--r--cmd_fsck.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd_fsck.c b/cmd_fsck.c
index 3f79f73..93746ac 100644
--- a/cmd_fsck.c
+++ b/cmd_fsck.c
@@ -28,8 +28,9 @@ int cmd_fsck(int argc, char *argv[])
opt_set(opts, degraded, true);
opt_set(opts, fix_errors, FSCK_OPT_ASK);
- while ((opt = getopt(argc, argv, "pynfvh")) != -1)
+ while ((opt = getopt(argc, argv, "apynfvh")) != -1)
switch (opt) {
+ case 'a': /* outdated alias for -p */
case 'p':
opt_set(opts, fix_errors, FSCK_OPT_YES);
break;