]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bsod: fix -c/--continuous support
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 15 Feb 2024 16:05:51 +0000 (01:05 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 15 Feb 2024 17:21:11 +0000 (02:21 +0900)
Fixes a bug introduced by f7f062bf9f194dc14a4ffc6e7fff9d8bfdea2147.

Fixes #31334.

src/journal/bsod.c

index 32525437df513d865528a245d6cc842e20d886c5..7d8aa54b15beff3456f78578c9b40d1f1e021caa 100644 (file)
@@ -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");