From: Sergey Poznyakoff Date: Sat, 21 Jan 2006 23:39:20 +0000 (+0000) Subject: (decode_options): Refuse using --delete with compression options X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;ds=sidebyside;h=a349bd80b9eb714f67d7f4174add54ea4fbe04d8;p=chaz%2Ftar (decode_options): Refuse using --delete with compression options --- diff --git a/src/tar.c b/src/tar.c index 0c4c84e..8e75e7a 100644 --- a/src/tar.c +++ b/src/tar.c @@ -1924,7 +1924,8 @@ 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 - || subcommand_option == APPEND_SUBCOMMAND) + || subcommand_option == APPEND_SUBCOMMAND + || subcommand_option == DELETE_SUBCOMMAND) USAGE_ERROR ((0, 0, _("Cannot update compressed archives"))); if (subcommand_option == CAT_SUBCOMMAND) USAGE_ERROR ((0, 0, _("Cannot concatenate compressed archives")));