From: Yu Watanabe Date: Thu, 15 Feb 2024 16:05:51 +0000 (+0900) Subject: bsod: fix -c/--continuous support X-Git-Tag: v256-rc1~842 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0455cec53238f2dbe97111a0b27ad54f7d13321;p=thirdparty%2Fsystemd.git bsod: fix -c/--continuous support Fixes a bug introduced by f7f062bf9f194dc14a4ffc6e7fff9d8bfdea2147. Fixes #31334. --- diff --git a/src/journal/bsod.c b/src/journal/bsod.c index 32525437df5..7d8aa54b15b 100644 --- a/src/journal/bsod.c +++ b/src/journal/bsod.c @@ -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");