summaryrefslogtreecommitdiff
authorDenys Vlasenko <vda.linux@googlemail.com>2016-06-20 09:04:04 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2016-06-20 09:04:04 (GMT)
commitecf25cb5bce27ca5820e2895d8458f38c406d105 (patch)
tree34f42ed988afce2b617de8a725dd80afe71740cc
parent5c3e060604444b18303f55e631637c28d889704f (diff)
downloadbusybox-ecf25cb5bce27ca5820e2895d8458f38c406d105.zip
busybox-ecf25cb5bce27ca5820e2895d8458f38c406d105.tar.gz
busybox-ecf25cb5bce27ca5820e2895d8458f38c406d105.tar.bz2
randomconfig fixes 5: false positive for tar; mount emits corrupted message
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat
-rwxr-xr-xtestsuite/tar.tests2
-rw-r--r--util-linux/mount.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/tar.tests b/testsuite/tar.tests
index f19a53d..c44b7ad 100755
--- a/testsuite/tar.tests
+++ b/testsuite/tar.tests
@@ -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
diff --git a/util-linux/mount.c b/util-linux/mount.c
index c76f6ef..cef4f74 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -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); */
}
}