From 9d90b35441a7a931775f37a3edd79a1b6af105f1 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 24 Jan 2023 19:16:50 +0100 Subject: [PATCH] server: Fix ls -l=c. This classic copy+paste bug caused ls -l=c to work as if -l=m had been given. Introduced seven years ago in commit 7af252cbfe13 (server: Convert com_ls() to lopsub). --- aft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aft.c b/aft.c index c8c98e7a..afe8c49d 100644 --- a/aft.c +++ b/aft.c @@ -1444,7 +1444,7 @@ static int com_ls(struct command_context *cc, struct lls_parse_result *lpr) else if (!strcmp(val, "m") || !strcmp(val, "mbox")) opts->mode = LS_MODE_MBOX; else if (!strcmp(val, "c") || !strcmp(val, "chunk-table")) - opts->mode = LS_MODE_MBOX; + opts->mode = LS_MODE_CHUNKS; else if (!strcmp(val, "p") || !strcmp(val, "parser-friendly")) opts->mode = LS_MODE_PARSER; else { -- 2.39.2