archive_check_magic(a, ARCHIVE_READ_MAGIC,
ARCHIVE_STATE_NEW, "archive_read_support_filter_all");
- /* Bzip falls back to "bunzip2" command-line */
+ /* Bzip falls back to "bzip2 -d" command-line */
archive_read_support_filter_bzip2(a);
/* The decompress code doesn't use an outside library. */
archive_read_support_filter_compress(a);
/* Gzip decompress falls back to "gzip -d" command-line. */
archive_read_support_filter_gzip(a);
- /* Lzip falls back to "unlzip" command-line program. */
+ /* Lzip falls back to "lzip -d -q" command-line. */
archive_read_support_filter_lzip(a);
/* The LZMA file format has a very weak signature, so it
* may not be feasible to keep this here, but we'll try.
* This will come back out if there are problems. */
- /* Lzma falls back to "unlzma" command-line program. */
+ /* Lzma falls back to "lzma -d -qq" command-line. */
archive_read_support_filter_lzma(a);
- /* Xz falls back to "unxz" command-line program. */
+ /* Xz falls back to "xz -d -qq" command-line. */
archive_read_support_filter_xz(a);
/* The decode code doesn't use an outside library. */
archive_read_support_filter_uu(a);
/* The decode code doesn't use an outside library. */
archive_read_support_filter_rpm(a);
- /* The decode code always uses "lrzip -q -d" command-line. */
+ /* The decode code always uses "lrzip -d -q" command-line. */
archive_read_support_filter_lrzip(a);
/* Lzop decompress falls back to "lzop -d" command-line. */
archive_read_support_filter_lzop(a);
/* The decode code always uses "grzip -d" command-line. */
archive_read_support_filter_grzip(a);
- /* Lz4 falls back to "lz4 -d" command-line program. */
+ /* Lz4 falls back to "lz4 -d -q" command-line. */
archive_read_support_filter_lz4(a);
- /* Zstd falls back to "zstd -d" command-line program. */
+ /* Zstd falls back to "zstd -d -qq" command-line. */
archive_read_support_filter_zstd(a);
/* Note: We always return ARCHIVE_OK here, even if some of the
/*
* Note that we can detect bzip2 archives even if we can't decompress
* them. (In fact, we like detecting them because we can give better
- * error messages.) So the bid framework here gets compiled even
- * if bzlib is unavailable.
+ * error messages.)
*/
static int bzip2_reader_bid(struct archive_read_filter_bidder *, struct archive_read_filter *);
static int bzip2_reader_init(struct archive_read_filter *);
#if !defined(HAVE_BZLIB_H) || !defined(BZ_CONFIG_ERROR)
/*
- * If we don't have the library on this system, we can't actually do the
- * decompression. We can, however, still detect compressed archives
- * and emit a useful message.
+ * If we don't have the library on this system, we can't do the
+ * decompression directly. We can, however, try to run "bzip2 -d"
+ * in case that's available.
*/
static int
bzip2_reader_init(struct archive_read_filter *self)
/*
* Note that we can detect gzip archives even if we can't decompress
* them. (In fact, we like detecting them because we can give better
- * error messages.) So the bid framework here gets compiled even
- * if zlib is unavailable.
- *
- * TODO: If zlib is unavailable, gzip_bidder_init() should
- * use the compress_program framework to try to fire up an external
- * gzip program.
+ * error messages.)
*/
static int gzip_bidder_bid(struct archive_read_filter_bidder *,
struct archive_read_filter *);
/*
* Note that we can detect lz4 archives even if we can't decompress
* them. (In fact, we like detecting them because we can give better
- * error messages.) So the bid framework here gets compiled even
- * if liblz4 is unavailable.
+ * error messages.)
*/
static int lz4_reader_bid(struct archive_read_filter_bidder *, struct archive_read_filter *);
static int lz4_reader_init(struct archive_read_filter *);
#if !defined(HAVE_LIBLZ4)
/*
- * If we don't have the library on this system, we can't actually do the
- * decompression. We can, however, still detect compressed archives
- * and emit a useful message.
+ * If we don't have the library on this system, we can't do the
+ * decompression directly. We can, however, try to run "lz4 -d -q"
+ * in case that's available.
*/
static int
lz4_reader_init(struct archive_read_filter *self)
#if defined(HAVE_LZO_LZOCONF_H) && defined(HAVE_LZO_LZO1X_H)
return (ARCHIVE_OK);
#else
- /* Return ARCHIVE_WARN since this always uses an external program. */
archive_set_error(_a, ARCHIVE_ERRNO_MISC,
"Using external lzop program for lzop decompression");
return (ARCHIVE_WARN);
/*
* Note that we can detect xz and lzma compressed files even if we
* can't decompress them. (In fact, we like detecting them because we
- * can give better error messages.) So the bid framework here gets
- * compiled even if no lzma library is available.
+ * can give better error messages.)
*/
static int xz_bidder_bid(struct archive_read_filter_bidder *,
struct archive_read_filter *);
/*
* Note that we can detect zstd compressed files even if we can't decompress
* them. (In fact, we like detecting them because we can give better error
- * messages.) So the bid framework here gets compiled even if no zstd library
- * is available.
+ * messages.)
*/
static int zstd_bidder_bid(struct archive_read_filter_bidder *,
struct archive_read_filter *);
/*
* If we don't have the library on this system, we can't do the
- * decompression directly. We can, however, try to run "zstd -d"
+ * decompression directly. We can, however, try to run "zstd -d -qq"
* in case that's available.
*/
static int