diff options
author | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2012-10-10 08:17:05 +0900 |
---|---|---|
committer | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2012-10-10 10:32:43 +0900 |
commit | 630ead783593075e974858372b9c171abb2df28a (patch) | |
tree | 40fe55e30b9b106de444fe01e0472fc8819e1587 /tar/bsdtar.c | |
parent | a2576a7428397690d890e7a7a010ba2db8fc6906 (diff) | |
download | libarchive-630ead783593075e974858372b9c171abb2df28a.tar.gz |
Add support for grzip compression.
Diffstat (limited to 'tar/bsdtar.c')
-rw-r--r-- | tar/bsdtar.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tar/bsdtar.c b/tar/bsdtar.c index 2b572315..7f19d837 100644 --- a/tar/bsdtar.c +++ b/tar/bsdtar.c @@ -315,6 +315,13 @@ main(int argc, char **argv) case OPTION_GNAME: /* cpio */ bsdtar->gname = bsdtar->argument; break; + case OPTION_GRZIP: + if (bsdtar->create_compression != '\0') + lafe_errc(1, 0, + "Can't specify both -%c and -%c", opt, + bsdtar->create_compression); + bsdtar->create_compression = opt; + break; case 'H': /* BSD convention */ bsdtar->symlink_mode = 'H'; break; |