mirror of
https://github.com/systemd/systemd.git
synced 2026-08-05 07:30:30 +00:00
journalctl: fix --boot=0 with --file=- (from stdin)
Follow-up for 592855c318.
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user