From: Sergey Poznyakoff Date: Tue, 4 Oct 2005 07:30:48 +0000 (+0000) Subject: (decode_options): Report error if -A or -r is used together with compression option. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=35b9ca72db64fe46b5cb5c0057b1151d40ec8395;p=chaz%2Ftar (decode_options): Report error if -A or -r is used together with compression option. --- diff --git a/src/tar.c b/src/tar.c index eacdaaf..6f21cb5 100644 --- a/src/tar.c +++ b/src/tar.c @@ -1759,8 +1759,11 @@ decode_options (int argc, char **argv) { if (multi_volume_option) USAGE_ERROR ((0, 0, _("Cannot use multi-volume compressed archives"))); - if (subcommand_option == UPDATE_SUBCOMMAND) + if (subcommand_option == UPDATE_SUBCOMMAND + || subcommand_option == APPEND_SUBCOMMAND) USAGE_ERROR ((0, 0, _("Cannot update compressed archives"))); + if (subcommand_option == CAT_SUBCOMMAND) + USAGE_ERROR ((0, 0, _("Cannot concatenate compressed archives"))); } /* It is no harm to use --pax-option on non-pax archives in archive