"lzma -d".
}
/*
- * Can this platform run the unlzma program?
+ * Can this platform run the lzma program?
*/
int
-canUnlzma(void)
+canLzma(void)
{
static int tested = 0, value = 0;
if (!tested) {
tested = 1;
- if (systemf("unlzma -V %s", redirectArgs) == 0)
+ if (systemf("lzma -V %s", redirectArgs) == 0)
value = 1;
}
return (value);
/* Return true if this platform can run the "lzip" program. */
int canLzip(void);
-/* Return true if this platform can run the "unlzma" program. */
-int canUnlzma(void);
+/* Return true if this platform can run the "lzma" program. */
+int canLzma(void);
/* Return true if this platform can run the "lzop" program. */
int canLzop(void);
extract_reference_file(reffile);
f = systemf("%s -it < %s >test.out 2>test.err", testprog, reffile);
- if (f == 0 || canUnlzma()) {
+ if (f == 0 || canLzma()) {
assertEqualInt(0, systemf("%s -i < %s >test.out 2>test.err",
testprog, reffile));
return (ARCHIVE_OK);
#else
archive_set_error(_a, ARCHIVE_ERRNO_MISC,
- "Using external unlzma program for lzma decompression");
+ "Using external lzma program for lzma decompression");
return (ARCHIVE_WARN);
#endif
}
{
int r;
- r = __archive_read_program(self, "unlzma");
+ r = __archive_read_program(self, "lzma -d");
/* Note: We set the format here even if __archive_read_program()
* above fails. We do, after all, know what the format is
* even if we weren't able to read it. */
}
/*
- * Can this platform run the unlzma program?
+ * Can this platform run the lzma program?
*/
int
-canUnlzma(void)
+canLzma(void)
{
static int tested = 0, value = 0;
if (!tested) {
tested = 1;
- if (systemf("unlzma -V %s", redirectArgs) == 0)
+ if (systemf("lzma -V %s", redirectArgs) == 0)
value = 1;
}
return (value);
/* Return true if this platform can run the "lzip" program. */
int canLzip(void);
-/* Return true if this platform can run the "unlzma" program. */
-int canUnlzma(void);
+/* Return true if this platform can run the "lzma" program. */
+int canLzma(void);
/* Return true if this platform can run the "lzop" program. */
int canLzop(void);
}
/*
- * Can this platform run the unlzma program?
+ * Can this platform run the lzma program?
*/
int
-canUnlzma(void)
+canLzma(void)
{
static int tested = 0, value = 0;
if (!tested) {
tested = 1;
- if (systemf("unlzma -V %s", redirectArgs) == 0)
+ if (systemf("lzma -V %s", redirectArgs) == 0)
value = 1;
}
return (value);
/* Return true if this platform can run the "lzip" program. */
int canLzip(void);
-/* Return true if this platform can run the "unlzma" program. */
-int canUnlzma(void);
+/* Return true if this platform can run the "lzma" program. */
+int canLzma(void);
/* Return true if this platform can run the "lzop" program. */
int canLzop(void);
extract_reference_file(reffile);
f = systemf("%s -tf %s >test.out 2>test.err", testprog, reffile);
- if (f == 0 || canUnlzma()) {
+ if (f == 0 || canLzma()) {
assertEqualInt(0, systemf("%s -xf %s >test.out 2>test.err",
testprog, reffile));