summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenys Vlasenko2010-05-06 17:05:22 +0200
committerDenys Vlasenko2010-05-06 17:05:22 +0200
commitc2345fa2d410a3b1bc2797dae246fcbcb23ef17e (patch)
tree22bcd77b49d8cc5791bda4be5d2881c1de7c85c9 /libbb
parent5dfd9c4dbcc30d6d3f745316fd11a797c06f06d0 (diff)
downloadbusybox-c2345fa2d410a3b1bc2797dae246fcbcb23ef17e.zip
busybox-c2345fa2d410a3b1bc2797dae246fcbcb23ef17e.tar.gz
add comment about xz format support
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r--libbb/read.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libbb/read.c b/libbb/read.c
index 503216e..21e005c 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*/)
if (!ENABLE_FEATURE_SEAMLESS_BZ2
|| magic[0] != 'B' || magic[1] != 'Z'
) {
+
+// TODO: xz format support. rpm adopted it, "rpm -i FILE.rpm" badly needs this.
+// Signature: 0xFD, '7', 'z', 'X', 'Z', 0x00
+// More info at: http://tukaani.org/xz/xz-file-format.txt
+
if (fail_if_not_detected)
bb_error_msg_and_die("no gzip"
IF_FEATURE_SEAMLESS_BZ2("/bzip2")