diff options
author | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2012-10-07 11:08:12 +0900 |
---|---|---|
committer | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2012-10-07 12:08:31 +0900 |
commit | f51924bbd48594fef8b0d0beed87284eed40e7d0 (patch) | |
tree | e31a7c21bcd76a0ba44fd79f07bddbcf470a9bae /tar/write.c | |
parent | d4e8205f1f09d05c87be0eaa54185aeb7c117d72 (diff) | |
download | libarchive-f51924bbd48594fef8b0d0beed87284eed40e7d0.tar.gz |
Add support for lzop.
Diffstat (limited to 'tar/write.c')
-rw-r--r-- | tar/write.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tar/write.c b/tar/write.c index 659b412c..25aaa184 100644 --- a/tar/write.c +++ b/tar/write.c @@ -184,6 +184,9 @@ tar_mode_c(struct bsdtar *bsdtar) case OPTION_LZMA: r = archive_write_set_compression_lzma(a); break; + case OPTION_LZOP: + r = archive_write_add_filter_lzop(a); + break; case 'z': r = archive_write_set_compression_gzip(a); break; @@ -195,7 +198,7 @@ tar_mode_c(struct bsdtar *bsdtar) "Unrecognized compression option -%c", bsdtar->create_compression); } - if (r != ARCHIVE_OK) { + if (r < ARCHIVE_WARN) { lafe_errc(1, 0, "Unsupported compression option -%c", bsdtar->create_compression); |