]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
unzip: fix EXTRA_VERSION macro in unzip/test/test.h
authorMartin Matuska <martin@matuska.de>
Fri, 14 Jul 2023 07:52:24 +0000 (09:52 +0200)
committerMartin Matuska <martin@matuska.de>
Fri, 14 Jul 2023 07:52:24 +0000 (09:52 +0200)
unzip/test/test.h

index 8df106e12f02a0db2203d573e8a769824eb3a46a..8da017f68e165be811b5c4445be066321f96ec63 100644 (file)
@@ -35,6 +35,6 @@
 #undef EXTRA_DUMP        /* How to dump extra data */
 #undef EXTRA_ERRNO       /* How to dump errno */
 /* How to generate extra version info. */
-#define        EXTRA_VERSION    (system(testprog) ? "" : "")
+#define        EXTRA_VERSION     (systemf("%s -v", testprog) ? "" : "")
 
 #include "test_common.h"