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
1 changed files with 1 additions and 2 deletions

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;
}