From: Michihiro NAKAJIMA Date: Thu, 11 Oct 2012 06:01:20 +0000 (+0900) Subject: canGunzip is no longer needed. We use "gzip -d" for gzip decompression. X-Git-Tag: v3.1.0~40^2~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b72acb3019ab88bac8f064e4e077b1093c9ff339;p=thirdparty%2Flibarchive.git canGunzip is no longer needed. We use "gzip -d" for gzip decompression. --- diff --git a/cpio/test/main.c b/cpio/test/main.c index 33b295cc3..b63c6e38d 100644 --- a/cpio/test/main.c +++ b/cpio/test/main.c @@ -1887,21 +1887,6 @@ canGzip(void) return (value); } -/* - * Can this platform run the gunzip program? - */ -int -canGunzip(void) -{ - static int tested = 0, value = 0; - if (!tested) { - tested = 1; - if (systemf("gunzip -V %s", redirectArgs) == 0) - value = 1; - } - return (value); -} - /* * Can this platform run the lrzip program? */ diff --git a/cpio/test/test.h b/cpio/test/test.h index 3eb0e7bc9..87f212ec7 100644 --- a/cpio/test/test.h +++ b/cpio/test/test.h @@ -275,9 +275,6 @@ int canGrzip(void); /* Return true if this platform can run the "gzip" program. */ int canGzip(void); -/* Return true if this platform can run the "gunzip" program. */ -int canGunzip(void); - /* Return true if this platform can run the "lrzip" program. */ int canLrzip(void); diff --git a/libarchive/test/main.c b/libarchive/test/main.c index 10cef5265..85a556215 100644 --- a/libarchive/test/main.c +++ b/libarchive/test/main.c @@ -1885,21 +1885,6 @@ canGzip(void) return (value); } -/* - * Can this platform run the gunzip program? - */ -int -canGunzip(void) -{ - static int tested = 0, value = 0; - if (!tested) { - tested = 1; - if (systemf("gunzip -V %s", redirectArgs) == 0) - value = 1; - } - return (value); -} - /* * Can this platform run the lrzip program? */ diff --git a/libarchive/test/test.h b/libarchive/test/test.h index d8a21b063..719b08f39 100644 --- a/libarchive/test/test.h +++ b/libarchive/test/test.h @@ -275,9 +275,6 @@ int canGrzip(void); /* Return true if this platform can run the "gzip" program. */ int canGzip(void); -/* Return true if this platform can run the "gunzip" program. */ -int canGunzip(void); - /* Return true if this platform can run the "lrzip" program. */ int canLrzip(void); diff --git a/tar/test/main.c b/tar/test/main.c index 620eb3975..4a7b10017 100644 --- a/tar/test/main.c +++ b/tar/test/main.c @@ -1887,21 +1887,6 @@ canGzip(void) return (value); } -/* - * Can this platform run the gunzip program? - */ -int -canGunzip(void) -{ - static int tested = 0, value = 0; - if (!tested) { - tested = 1; - if (systemf("gunzip -V %s", redirectArgs) == 0) - value = 1; - } - return (value); -} - /* * Can this platform run the lrzip program? */ diff --git a/tar/test/test.h b/tar/test/test.h index d27e868d0..d8b9c5c1f 100644 --- a/tar/test/test.h +++ b/tar/test/test.h @@ -277,9 +277,6 @@ int canGrzip(void); /* Return true if this platform can run the "gzip" program. */ int canGzip(void); -/* Return true if this platform can run the "gunzip" program. */ -int canGunzip(void); - /* Return true if this platform can run the "lrzip" program. */ int canLrzip(void);