summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMirco Tischler <mt-ml@gmx.de>2012-09-22 21:45:30 +0200
committerLennart Poettering <lennart@poettering.net>2012-09-24 14:41:38 +0200
commitf1889c9119bd4de2f4e016a8113a1c1b2f467713 (patch)
tree04bd9f7c5098e2498cf89a5344ba79402c0f60ef /src
parent585314e84c1a2e8941309874088963985e063213 (diff)
journal: set seal even for readonly journalfiles
journalctl needs to know wether the file has been sealed to be able to do verification.
Diffstat (limited to 'src')
-rw-r--r--src/journal/journal-file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
index 6db9955aa5..f775fec444 100644
--- a/src/journal/journal-file.c
+++ b/src/journal/journal-file.c
@@ -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;
}