summaryrefslogtreecommitdiff
path: root/tar/bsdtar.c
diff options
context:
space:
mode:
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>2012-10-10 08:17:05 +0900
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>2012-10-10 10:32:43 +0900
commit630ead783593075e974858372b9c171abb2df28a (patch)
tree40fe55e30b9b106de444fe01e0472fc8819e1587 /tar/bsdtar.c
parenta2576a7428397690d890e7a7a010ba2db8fc6906 (diff)
downloadlibarchive-630ead783593075e974858372b9c171abb2df28a.tar.gz
Add support for grzip compression.
Diffstat (limited to 'tar/bsdtar.c')
-rw-r--r--tar/bsdtar.c7
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;