journalctl: also check arg_file_stdin with other journal location

options

Prompted by #32491
This commit is contained in:
Mike Yuan
2024-04-29 16:47:11 +08:00
committed by Luca Boccassi
parent 92ecff6098
commit 821bf13b6e

View File

@@ -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=.");