]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Perform 'bzip2 -d -V' instead of 'bzip2 -V' for a bzip2 availableness
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 16 Oct 2012 05:00:42 +0000 (14:00 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 16 Oct 2012 05:00:42 +0000 (14:00 +0900)
test because the process on FreeBSD 9 does not finish its program
when redirecting stdout to /dev/null.

cpio/test/main.c
libarchive/test/main.c
tar/test/main.c

index 87e9255344b1f00d12bc5a25d70932784647834d..c123b3080656e4d0bb00a7cd748c412867521574 100644 (file)
@@ -1851,7 +1851,7 @@ canBzip2(void)
        static int tested = 0, value = 0;
        if (!tested) {
                tested = 1;
-               if (systemf("bzip2 -V %s", redirectArgs) == 0)
+               if (systemf("bzip2 -d -V %s", redirectArgs) == 0)
                        value = 1;
        }
        return (value);
index 8be2a14e873b6f75bef2ad0af832d6f5a7213a55..c7471474c902f626ce3ff002b1d7cdccd628759c 100644 (file)
@@ -1849,7 +1849,7 @@ canBzip2(void)
        static int tested = 0, value = 0;
        if (!tested) {
                tested = 1;
-               if (systemf("bzip2 -V %s", redirectArgs) == 0)
+               if (systemf("bzip2 -d -V %s", redirectArgs) == 0)
                        value = 1;
        }
        return (value);
index 0af1283315ffb886fc9db30920b5525129aec1df..f700f192cd06546c7a2ad62766a4e8e74bb3a53b 100644 (file)
@@ -1851,7 +1851,7 @@ canBzip2(void)
        static int tested = 0, value = 0;
        if (!tested) {
                tested = 1;
-               if (systemf("bzip2 -V %s", redirectArgs) == 0)
+               if (systemf("bzip2 -d -V %s", redirectArgs) == 0)
                        value = 1;
        }
        return (value);