[systemd-commits] src/journal

Lennart Poettering lennart at kemper.freedesktop.org
Mon Sep 24 05:41:49 PDT 2012


 src/journal/journal-file.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit f1889c9119bd4de2f4e016a8113a1c1b2f467713
Author: Mirco Tischler <mt-ml at gmx.de>
Date:   Sat Sep 22 21:45:30 2012 +0200

    journal: set seal even for readonly journalfiles
    
    journalctl needs to know wether the file has been sealed to
    be able to do verification.

diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
index 6db9955..f775fec 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;
 }



More information about the systemd-commits mailing list