summaryrefslogtreecommitdiffstats
path: root/src/import
diff options
context:
space:
mode:
authorMatthew Thode <mthode@mthode.org>2018-01-11 17:48:43 +0100
committerLennart Poettering <lennart@poettering.net>2018-01-11 23:38:04 +0100
commit59dda97f7f6afecfcc9c96c1559848b688d5f3ec (patch)
tree333c49c59d42778a5c5995a31f438dc537132f6f /src/import
parentMerge pull request #7851 from msekletar/dbus-error-logging (diff)
downloadsystemd-59dda97f7f6afecfcc9c96c1559848b688d5f3ec.tar.xz
systemd-59dda97f7f6afecfcc9c96c1559848b688d5f3ec.zip
support LZMA concatenated files
The xz format supports concatenated files, images are sometimes created and shipped with it to increase compression. https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1742744 is the source bug for this issue.
Diffstat (limited to 'src/import')
-rw-r--r--src/import/import-compress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/import/import-compress.c b/src/import/import-compress.c
index cb5b9821c3..acb47fef14 100644
--- a/src/import/import-compress.c
+++ b/src/import/import-compress.c
@@ -70,7 +70,7 @@ int import_uncompress_detect(ImportCompress *c, const void *data, size_t size) {
if (memcmp(data, xz_signature, sizeof(xz_signature)) == 0) {
lzma_ret xzr;
- xzr = lzma_stream_decoder(&c->xz, UINT64_MAX, LZMA_TELL_UNSUPPORTED_CHECK);
+ xzr = lzma_stream_decoder(&c->xz, UINT64_MAX, LZMA_TELL_UNSUPPORTED_CHECK | LZMA_CONCATENATED);
if (xzr != LZMA_OK)
return -EIO;