]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/journal/journalctl.c
journalctl: allow --file/--directory with --boot or --list-boots
[thirdparty/systemd.git] / 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;
         }