1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-13 12:58:20 +03:00

journal: set seal even for readonly journalfiles

journalctl needs to know wether the file has been sealed to
be able to do verification.
This commit is contained in:
Mirco Tischler 2012-09-22 21:45:30 +02:00 committed by Lennart Poettering
parent 585314e84c
commit f1889c9119

View File

@ -260,8 +260,7 @@ static int journal_file_verify_header(JournalFile *f) {
f->compress = JOURNAL_HEADER_COMPRESSED(f->header);
if (f->writable)
f->seal = JOURNAL_HEADER_SEALED(f->header);
f->seal = JOURNAL_HEADER_SEALED(f->header);
return 0;
}