diff options
| author | Martin Matuska <mm@FreeBSD.org> | 2017-09-30 23:33:19 +0000 |
|---|---|---|
| committer | Martin Matuska <mm@FreeBSD.org> | 2017-09-30 23:33:19 +0000 |
| commit | 533ab3c53efbfd230b718ed77dc9ea4d1446ddfc (patch) | |
| tree | 7754efa68576e44389846bd73fad80a27240b0ba /tar/bsdtar.c | |
| parent | b85c4c3da0a560cb98d13902c308e54fdeb52d70 (diff) | |
Notes
Diffstat (limited to 'tar/bsdtar.c')
| -rw-r--r-- | tar/bsdtar.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tar/bsdtar.c b/tar/bsdtar.c index 9fc68332e5dc..11dedbf9c26a 100644 --- a/tar/bsdtar.c +++ b/tar/bsdtar.c @@ -419,6 +419,7 @@ main(int argc, char **argv) case OPTION_LZIP: /* GNU tar beginning with 1.23 */ case OPTION_LZMA: /* GNU tar beginning with 1.20 */ case OPTION_LZOP: /* GNU tar beginning with 1.21 */ + case OPTION_ZSTD: if (compression != '\0') lafe_errc(1, 0, "Can't specify both -%c and -%c", opt, @@ -427,9 +428,10 @@ main(int argc, char **argv) switch (opt) { case OPTION_LRZIP: compression_name = "lrzip"; break; case OPTION_LZ4: compression_name = "lz4"; break; - case OPTION_LZIP: compression_name = "lzip"; break; - case OPTION_LZMA: compression_name = "lzma"; break; - case OPTION_LZOP: compression_name = "lzop"; break; + case OPTION_LZIP: compression_name = "lzip"; break; + case OPTION_LZMA: compression_name = "lzma"; break; + case OPTION_LZOP: compression_name = "lzop"; break; + case OPTION_ZSTD: compression_name = "zstd"; break; } break; case 'm': /* SUSv2 */ |
