From 35b9ca72db64fe46b5cb5c0057b1151d40ec8395 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Tue, 4 Oct 2005 07:30:48 +0000 Subject: [PATCH] (decode_options): Report error if -A or -r is used together with compression option. --- src/tar.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.44.0