randomconfig fixes 5: false positive for tar; mount emits corrupted message
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 20 Jun 2016 09:04:04 +0000 (11:04 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 20 Jun 2016 09:04:04 +0000 (11:04 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
testsuite/tar.tests
util-linux/mount.c

index f19a53da23cf50a2014d62e64bc3e4b51e483a50..c44b7ad070610b428d80a3d32e2c32a53ffacc47 100755 (executable)
@@ -204,7 +204,7 @@ SKIP=
 
 # Had a bug where on extract autodetect first "switched off" -z
 # and then failed to recognize .tgz extension
-optional FEATURE_TAR_CREATE FEATURE_SEAMLESS_GZ
+optional FEATURE_TAR_CREATE FEATURE_SEAMLESS_GZ GUNZIP
 testing "tar extract tgz" "\
 dd count=1 bs=1M if=/dev/zero of=F0 2>/dev/null
 tar -czf F0.tgz F0
index c76f6ef610d149bcf7053b0e945f2b06cf12f923..cef4f741597ccfbb188e1cf19bd38b03e67e2dea 100644 (file)
@@ -2058,7 +2058,7 @@ static int singlemount(struct mntent *mp, int ignore_busy)
                del_loop(mp->mnt_fsname);
                if (ENABLE_FEATURE_CLEAN_UP) {
                        free(loopFile);
-                       free(mp->mnt_fsname);
+                       /* No, "rc != 0" needs it: free(mp->mnt_fsname); */
                }
        }