]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journalctl: allow --file/--directory with --boot or --list-boots
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 28 Jun 2016 19:27:07 +0000 (15:27 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 28 Jun 2016 20:14:04 +0000 (16:14 -0400)
It works mostly fine, and can be quite useful to examine data from another
system.

OTOH, a single boot id doesn't make sense with --merge, so mixing with --merge
is still not allowed.

src/journal/journalctl.c

index 8e4897831b368206381b98ea9fe826e7f1f3a779..ac55e68b90c49df2899da8b33ead18093e975b55 100644 (file)
@@ -868,8 +868,8 @@ static int parse_argv(int argc, char *argv[]) {
                 return -EINVAL;
         }
 
-        if ((arg_boot || arg_action == ACTION_LIST_BOOTS) && (arg_file || arg_directory || arg_merge)) {
-                log_error("Using --boot or --list-boots with --file, --directory or --merge is not supported.");
+        if ((arg_boot || arg_action == ACTION_LIST_BOOTS) && arg_merge) {
+                log_error("Using --boot or --list-boots with --merge is not supported.");
                 return -EINVAL;
         }