summaryrefslogtreecommitdiff
path: root/libbcachefs/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/error.c')
-rw-r--r--libbcachefs/error.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbcachefs/error.c b/libbcachefs/error.c
index 545c55da..b08cd23d 100644
--- a/libbcachefs/error.c
+++ b/libbcachefs/error.c
@@ -85,12 +85,13 @@ enum ask_yn bch2_fsck_ask_yn(void)
bool ret;
while (true) {
- fputs(" (y,n,Y,N) ", stdout);
+ fputs(" (y,n, or Y,N for all errors of this type) ", stdout);
fflush(stdout);
if (getline(&buf, &buflen, stdin) < 0)
die("error reading from standard input");
+ strim(buf);
if (strlen(buf) != 1)
continue;