From 2b43729bf9ec7a7a4751f7a0f7f40aada14ec140 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 22 Nov 2023 08:44:44 +0900 Subject: [PATCH] sd-journal: warn about seals may not be continuous only when the file is sealed Follow-up for e375bc5fcc080815ce849261eb505d084c2fde3e. Fixes #30118. --- src/libsystemd/sd-journal/journal-verify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd/sd-journal/journal-verify.c b/src/libsystemd/sd-journal/journal-verify.c index 654993ac81..8fc53beb42 100644 --- a/src/libsystemd/sd-journal/journal-verify.c +++ b/src/libsystemd/sd-journal/journal-verify.c @@ -925,7 +925,7 @@ int journal_file_verify( goto fail; } - if (!JOURNAL_HEADER_SEALED_CONTINUOUS(f->header)) + if (JOURNAL_HEADER_SEALED(f->header) && !JOURNAL_HEADER_SEALED_CONTINUOUS(f->header)) warning(p, "This log file was sealed with an old journald version where the sequence of seals might not be continuous. We cannot guarantee completeness.");