From e8e60b982daa89e2012c12e54395044a919261d0 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Thu, 20 Jul 2023 18:11:51 -0400 Subject: Fix 'bcachefs fsck -y' Signed-off-by: Kent Overstreet --- cmd_fsck.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd_fsck.c b/cmd_fsck.c index 00134971..0954a83c 100644 --- a/cmd_fsck.c +++ b/cmd_fsck.c @@ -45,10 +45,8 @@ int cmd_fsck(int argc, char *argv[]) switch (opt) { case 'a': /* outdated alias for -p */ case 'p': - opt_set(opts, fix_errors, FSCK_FIX_yes); - break; case 'y': - opt_set(opts, fix_errors, FSCK_FIX_no); + opt_set(opts, fix_errors, FSCK_FIX_yes); break; case 'n': opt_set(opts, nochanges, true); -- cgit v1.2.3