From 821bf13b6e7a20ca05bebad2bc435e40a424ca18 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Mon, 29 Apr 2024 16:47:11 +0800 Subject: journalctl: also check arg_file_stdin with other journal location options Prompted by #32491 --- src/journal/journalctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/journal/journalctl.c') 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=."); -- cgit v1.2.3