]> Dogcows Code - chaz/tar/commitdiff
(main): Do not check for volume_label_option unless subcommand_option is CREATE_SUBCO...
authorSergey Poznyakoff <gray@gnu.org.ua>
Thu, 4 Sep 2003 13:59:35 +0000 (13:59 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Thu, 4 Sep 2003 13:59:35 +0000 (13:59 +0000)
src/tar.c

index 994a0f783d21c9eff84e02cbc6badb1a4d8cacbb..f6a9e0d4dd4908d9c2610bf00f23c501cf0f8674 100644 (file)
--- a/src/tar.c
+++ b/src/tar.c
@@ -1224,7 +1224,7 @@ see the file named COPYING for details."));
   if (archive_format == GNU_FORMAT && getenv ("POSIXLY_CORRECT"))
     archive_format = POSIX_FORMAT;
 
-  if ((volume_label_option
+  if (((volume_label_option && subcommand_option == CREATE_SUBCOMMAND)
        || incremental_option || multi_volume_option || sparse_option)
       && archive_format != OLDGNU_FORMAT && archive_format != GNU_FORMAT)
     USAGE_ERROR ((0, 0,
This page took 0.026589 seconds and 4 git commands to generate.