diff options
author | Matthew Thode <mthode@mthode.org> | 2018-01-11 17:48:43 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-01-11 23:38:04 +0100 |
commit | 59dda97f7f6afecfcc9c96c1559848b688d5f3ec (patch) | |
tree | 333c49c59d42778a5c5995a31f438dc537132f6f /src/import | |
parent | Merge pull request #7851 from msekletar/dbus-error-logging (diff) | |
download | systemd-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.c | 2 |
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; |