(decode_options): Report error if -A or -r is used together with compression option.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user