diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-04-26 02:40:26 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-05-10 04:43:57 +0200 |
commit | ae0e6de918b7f8cb89ed1d69a4631d02eeab7d0c (patch) | |
tree | e2b29657ff4949c19c3499db3468e171f98d8f69 /src | |
parent | journalctl: split out journal_acquire_boot() from add_boot() (diff) | |
download | systemd-ae0e6de918b7f8cb89ed1d69a4631d02eeab7d0c.tar.xz systemd-ae0e6de918b7f8cb89ed1d69a4631d02eeab7d0c.zip |
journalctl: fix --boot=0 with --file=- (from stdin)
Follow-up for 592855c3189549fed93b1060b72299910c6ab1d0.
Diffstat (limited to 'src')
-rw-r--r-- | src/journal/journalctl-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journalctl-util.c b/src/journal/journalctl-util.c index 5c94e2c5ab..2e7e652fba 100644 --- a/src/journal/journalctl-util.c +++ b/src/journal/journalctl-util.c @@ -89,7 +89,7 @@ int journal_acquire_boot(sd_journal *j) { * We can do this only when the logs are coming from the current machine, * so take the slow path if log location is specified. */ if (arg_boot_offset == 0 && sd_id128_is_null(arg_boot_id) && - !arg_directory && !arg_file && !arg_root) { + !arg_directory && !arg_file && !arg_file_stdin && !arg_root) { r = id128_get_boot_for_machine(arg_machine, &arg_boot_id); if (r < 0) return log_error_errno(r, "Failed to get boot ID%s%s: %m", |