]> Dogcows Code - chaz/tar/commitdiff
(decode_options): Report error if -A or -r is used together with compression option.
authorSergey Poznyakoff <gray@gnu.org.ua>
Tue, 4 Oct 2005 07:30:48 +0000 (07:30 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Tue, 4 Oct 2005 07:30:48 +0000 (07:30 +0000)
src/tar.c

index eacdaaf31436fbc192a60f7a0a7352281f69026d..6f21cb58f51d703679585e44b70bf828c15467f5 100644 (file)
--- 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
This page took 0.030272 seconds and 4 git commands to generate.