]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
canGunzip is no longer needed. We use "gzip -d" for gzip decompression.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Thu, 11 Oct 2012 06:01:20 +0000 (15:01 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Thu, 11 Oct 2012 06:01:20 +0000 (15:01 +0900)
cpio/test/main.c
cpio/test/test.h
libarchive/test/main.c
libarchive/test/test.h
tar/test/main.c
tar/test/test.h

index 33b295cc3bd6cf07d4bb7a9eb2e3711f0b0687b4..b63c6e38d96e69a4d9ea622128451e6ccf8a267a 100644 (file)
@@ -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?
  */
index 3eb0e7bc9f320d79a8b93c20a32f403296a20052..87f212ec735bd9d7126db39547c3fee7161bc9b1 100644 (file)
@@ -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);
 
index 10cef52657d674a4876ceb9fa32909b4f3f4842a..85a556215941d0f1cbb41d35b833687135ae0bfa 100644 (file)
@@ -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?
  */
index d8a21b063f8e5860ab487c34fcc04924a28a3886..719b08f39aa2c0cc67f35a53b633bc54dd506fd1 100644 (file)
@@ -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);
 
index 620eb3975e2da21ac960e35ba2bfa48151044a27..4a7b100174195277a20f2b9046a93ec8403f16a7 100644 (file)
@@ -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?
  */
index d27e868d05b0920ee5cfd055ccf88fe651355bad..d8b9c5c1f31657dab5110c328927d6dc692e756c 100644 (file)
@@ -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);