summaryrefslogtreecommitdiffstats
path: root/src/journal/journalctl.c
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-04-29 10:47:11 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2024-04-29 14:18:38 +0200
commit821bf13b6e7a20ca05bebad2bc435e40a424ca18 (patch)
tree85aaa3a984ba3dc7b2b28b1e3ff8d0256d683f36 /src/journal/journalctl.c
parentdocs/DEBUGGING.md: use an underscore in the kernel command line option (diff)
downloadsystemd-821bf13b6e7a20ca05bebad2bc435e40a424ca18.tar.xz
systemd-821bf13b6e7a20ca05bebad2bc435e40a424ca18.zip
journalctl: also check arg_file_stdin with other journal location
options Prompted by #32491
Diffstat (limited to '')
-rw-r--r--src/journal/journalctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
index 8b60e890ee..f634d33a97 100644
--- a/src/journal/journalctl.c
+++ b/src/journal/journalctl.c
@@ -942,7 +942,7 @@ static int parse_argv(int argc, char *argv[]) {
arg_boot_offset = 0;
}
- if (!!arg_directory + !!arg_file + !!arg_machine + !!arg_root + !!arg_image > 1)
+ if (!!arg_directory + !!arg_file + arg_file_stdin + !!arg_machine + !!arg_root + !!arg_image > 1)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
"Please specify at most one of -D/--directory=, --file=, -M/--machine=, --root=, --image=.");