From: Sergey Poznyakoff Date: Thu, 4 Sep 2003 13:59:35 +0000 (+0000) Subject: (main): Do not check for volume_label_option unless subcommand_option is CREATE_SUBCO... X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=8b4453b4e2f1d89b969a80b1349dc28311885c4a;p=chaz%2Ftar (main): Do not check for volume_label_option unless subcommand_option is CREATE_SUBCOMMAND. --- diff --git a/src/tar.c b/src/tar.c index 994a0f7..f6a9e0d 100644 --- 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,