From b5e3302af7fd5e91ffab9567a6837a69398d5287 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sat, 10 Feb 2018 22:48:48 +0100 Subject: [PATCH] fsck: support -a as -p for compatibility with other fsck --- cmd_fsck.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd_fsck.c b/cmd_fsck.c index 3f79f733..93746ac0 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;