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?
*/
/* 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);
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?
*/
/* 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);
/*
* If we have "gzip -d", try using that.
*/
- if (!canGzip()) {
- skipping("Can't run gzip program on this platform");
+ if (!canGunzip()) {
+ skipping("Can't run gunzip program on this platform");
return;
}
assert((a = archive_read_new()) != NULL);
/*
* If we have "gzip -d", try using that.
*/
- if (!canGzip()) {
- skipping("Can't run gzip program on this platform");
+ if (!canGunzip()) {
+ skipping("Can't run gunzip program on this platform");
return;
}
assert((a = archive_read_new()) != NULL);
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?
*/
/* 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);