From: Yu Watanabe Date: Tue, 21 Nov 2023 23:44:44 +0000 (+0900) Subject: sd-journal: warn about seals may not be continuous only when the file is sealed X-Git-Tag: v255-rc3~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b43729bf9ec7a7a4751f7a0f7f40aada14ec140;p=thirdparty%2Fsystemd.git sd-journal: warn about seals may not be continuous only when the file is sealed Follow-up for e375bc5fcc080815ce849261eb505d084c2fde3e. Fixes #30118. --- diff --git a/src/libsystemd/sd-journal/journal-verify.c b/src/libsystemd/sd-journal/journal-verify.c index 654993ac81f..8fc53beb42e 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.");