summaryrefslogtreecommitdiff
path: root/libbb/read.c
diff options
context:
space:
mode:
authorDenis Vlasenko2008-08-05 17:43:29 +0000
committerDenis Vlasenko2008-08-05 17:43:29 +0000
commitec73d303225c1ee7d9eacc8e7238eb70835280a4 (patch)
treeaec4beb73e5dd1584009633eb0fb20338fe6b3c3 /libbb/read.c
parent0e7f28d674e889737efece7a783496384c823629 (diff)
downloadbusybox-ec73d303225c1ee7d9eacc8e7238eb70835280a4.zip
busybox-ec73d303225c1ee7d9eacc8e7238eb70835280a4.tar.gz
randomconfig fixes
Diffstat (limited to 'libbb/read.c')
-rw-r--r--libbb/read.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libbb/read.c b/libbb/read.c
index 9f6bfcd..815007c 100644
--- a/libbb/read.c
+++ b/libbb/read.c
@@ -338,12 +338,16 @@ int FAST_FUNC open_zipped(const char *fname)
/* .gz and .bz2 both have 2-byte signature, and their
* unpack_XXX_stream want this header skipped. */
xread(fd, &magic, 2);
+#if ENABLE_FEATURE_SEAMLESS_GZ
#if BB_MMU
xformer = unpack_gz_stream;
#else
xformer_prog = "gunzip";
#endif
- if (magic[0] != 0x1f || magic[1] != 0x8b) {
+#endif
+ if (!ENABLE_FEATURE_SEAMLESS_GZ
+ || magic[0] != 0x1f || magic[1] != 0x8b
+ ) {
if (!ENABLE_FEATURE_SEAMLESS_BZ2
|| magic[0] != 'B' || magic[1] != 'Z'
) {