summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbb/read.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libbb/read.c b/libbb/read.c
index 503216eb5..21e005c6f 100644
--- a/libbb/read.c
+++ b/libbb/read.c
@@ -334,6 +334,11 @@ int FAST_FUNC setup_unzip_on_fd(int fd /*, int fail_if_not_detected*/)
334 if (!ENABLE_FEATURE_SEAMLESS_BZ2 334 if (!ENABLE_FEATURE_SEAMLESS_BZ2
335 || magic[0] != 'B' || magic[1] != 'Z' 335 || magic[0] != 'B' || magic[1] != 'Z'
336 ) { 336 ) {
337
338// TODO: xz format support. rpm adopted it, "rpm -i FILE.rpm" badly needs this.
339// Signature: 0xFD, '7', 'z', 'X', 'Z', 0x00
340// More info at: http://tukaani.org/xz/xz-file-format.txt
341
337 if (fail_if_not_detected) 342 if (fail_if_not_detected)
338 bb_error_msg_and_die("no gzip" 343 bb_error_msg_and_die("no gzip"
339 IF_FEATURE_SEAMLESS_BZ2("/bzip2") 344 IF_FEATURE_SEAMLESS_BZ2("/bzip2")