sd-journal: warn about seals may not be continuous only when the file is sealed

Follow-up for e375bc5fcc.

Fixes #30118.
This commit is contained in:
Yu Watanabe
2023-11-22 10:48:21 +09:00
parent 5e5d4d36b4
commit 2b43729bf9
+1 -1
View File
@@ -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.");