]> Dogcows Code - chaz/tar/commitdiff
(decode_options): Refuse using --delete with compression options
authorSergey Poznyakoff <gray@gnu.org.ua>
Sat, 21 Jan 2006 23:39:20 +0000 (23:39 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Sat, 21 Jan 2006 23:39:20 +0000 (23:39 +0000)
src/tar.c

index 0c4c84e5519fabd43287dc80c89930bf710f5081..8e75e7ad421d0fe389b7d21a48add5232ab8d441 100644 (file)
--- 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")));
This page took 0.027179 seconds and 4 git commands to generate.