From: Andre Noll Date: Tue, 24 Jan 2023 18:16:50 +0000 (+0100) Subject: server: Fix ls -l=c. X-Git-Tag: v0.7.2~7^2~1 X-Git-Url: http://git.tuebingen.mpg.de/versions/paraslash-0.3.1.tar.bz2.asc?a=commitdiff_plain;h=9d90b35441a7a931775f37a3edd79a1b6af105f1;p=paraslash.git 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). --- 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 {