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:
@@ -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.");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user