summaryrefslogtreecommitdiff
path: root/src/journal/journal-file.c
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2012-09-03 15:46:44 +0200
committerLennart Poettering <lennart@poettering.net>2012-09-11 03:01:14 +0200
commit48b617399d7d8446c5310b2568b2af6f13331b4c (patch)
tree55b8cfd2cb535c1b5f533fa932978d0475df92fd /src/journal/journal-file.c
parentb3d284696cc244be51bbf82d5fa1bacc197c2f99 (diff)
journal: don't try to compress without XZ
otherwise the header contains the HEADER_INCOMPATIBLE_COMPRESSED flag even though the data is not compressed and reading the journal fails.
Diffstat (limited to 'src/journal/journal-file.c')
-rw-r--r--src/journal/journal-file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
index c8193baa3b..8bd52733c9 100644
--- a/src/journal/journal-file.c
+++ b/src/journal/journal-file.c
@@ -2021,7 +2021,9 @@ int journal_file_open(
f->flags = flags;
f->prot = prot_from_flags(flags);
f->writable = (flags & O_ACCMODE) != O_RDONLY;
+#ifdef HAVE_XZ
f->compress = compress;
+#endif
f->seal = seal;
if (mmap_cache)