Fix condition that prevented creation of compressed files
authorGlenn L McGrath <bug1@ihug.co.nz>
Wed, 13 Feb 2002 03:32:11 +0000 (03:32 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Wed, 13 Feb 2002 03:32:11 +0000 (03:32 -0000)
archival/tar.c

index b64060402dd6b4f8e32f0d5d649ce4ee79540eab..7662f4baac102821bad07efa2c66573621fe2d62 100644 (file)
@@ -714,7 +714,7 @@ int tar_main(int argc, char **argv)
                int verboseFlag = FALSE;
 
 #ifdef CONFIG_FEATURE_TAR_GZIP
-               if (untar_funct && untar_unzip) {
+               if (untar_funct & untar_unzip) {
                        error_msg_and_die("Creation of compressed tarfile not internally support by tar, pipe to busybox gunzip");
                }
 #endif // CONFIG_FEATURE_TAR_GZIP