]> git.sesse.net Git - bcachefs-tools-debian/commitdiff
fsck: support -a as -p for compatibility with other fsck
authorLeah Neukirchen <leah@vuxu.org>
Sat, 10 Feb 2018 21:48:48 +0000 (22:48 +0100)
committerLeah Neukirchen <leah@vuxu.org>
Sat, 10 Feb 2018 21:48:48 +0000 (22:48 +0100)
cmd_fsck.c

index 3f79f7330348d225087324c03b866b1d3a5d41f5..93746ac02959718d38be1c9b410a3d28e2cd7389 100644 (file)
@@ -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;