bsod: fix -c/--continuous support
Fixes a bug introduced by f7f062bf9f.
Fixes #31334.
This commit is contained in:
+1
-1
@@ -60,7 +60,7 @@ static int acquire_first_emergency_log_message(char **ret) {
|
||||
|
||||
assert(ret);
|
||||
|
||||
r = sd_journal_open(&j, SD_JOURNAL_LOCAL_ONLY | SD_JOURNAL_ASSUME_IMMUTABLE);
|
||||
r = sd_journal_open(&j, SD_JOURNAL_LOCAL_ONLY | (arg_continuous ? 0 : SD_JOURNAL_ASSUME_IMMUTABLE));
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to open journal: %m");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user