]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journalctl: enable args for --dump-catalog and --list-catalog 1548/head
authorEvgeny Vereshchagin <evvers@ya.ru>
Tue, 13 Oct 2015 06:04:11 +0000 (09:04 +0300)
committerEvgeny Vereshchagin <evvers@ya.ru>
Tue, 13 Oct 2015 06:04:11 +0000 (09:04 +0300)
`journalctl --dump-catalog ID1 ID2 ...` works fine.

src/journal/journalctl.c

index 3cc5b1e7025c201bce89bd646482d640d9f56775..e163e3d4173163f56c0c0c605a38da3e1e43859a 100644 (file)
@@ -748,7 +748,7 @@ static int parse_argv(int argc, char *argv[]) {
                 return -EINVAL;
         }
 
-        if (arg_action != ACTION_SHOW && optind < argc) {
+        if (!IN_SET(arg_action, ACTION_SHOW, ACTION_DUMP_CATALOG, ACTION_LIST_CATALOG) && optind < argc) {
                 log_error("Extraneous arguments starting with '%s'", argv[optind]);
                 return -EINVAL;
         }