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:
parent
585314e84c
commit
f1889c9119
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user