]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
server: Fix ls -l=c.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 24 Jan 2023 18:16:50 +0000 (19:16 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 24 Jan 2023 18:23:57 +0000 (19:23 +0100)
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

diff --git a/aft.c b/aft.c
index c8c98e7ab679b5a5254eed9405afa3cca6cf870e..afe8c49dd1d91854cb6112bbc6dea3ba3046734f 100644 (file)
--- 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 {