diff options
author | kientzle <kientzle@FreeBSD.org> | 2004-06-07 03:38:17 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2004-06-07 03:38:17 +0000 |
commit | 270635f9583e3b6eb21d37f7c276d1c4e576e91b (patch) | |
tree | 45facb6ac5df34b455424fb0a814bdc610ab6951 /usr.bin | |
parent | eadec7015b4ae23b7bb664ee0ab2e934c4376d69 (diff) | |
download | FreeBSD-src-270635f9583e3b6eb21d37f7c276d1c4e576e91b.zip FreeBSD-src-270635f9583e3b6eb21d37f7c276d1c4e576e91b.tar.gz |
Ooops! Previous commit added an over-zealous error check.
It is, in fact, perfectly legal to not specify a compression when
writing an archive. <sigh>
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tar/write.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/tar/write.c b/usr.bin/tar/write.c index 12ff145..936b50c 100644 --- a/usr.bin/tar/write.c +++ b/usr.bin/tar/write.c @@ -165,6 +165,8 @@ tar_mode_c(struct bsdtar *bsdtar) archive_write_set_bytes_per_block(a, DEFAULT_BYTES_PER_BLOCK); switch (bsdtar->create_compression) { + case 0: + break; case 'j': case 'y': archive_write_set_compression_bzip2(a); break; |