Discussion:
[PATCH] tar.tests: also check uudecode
Chen Qi
2018-11-13 05:05:25 UTC
Permalink
The test case uses uudecode command, so also check it
via optional function.

Signed-off-by: Chen Qi <***@windriver.com>
---
testsuite/tar.tests | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuite/tar.tests b/testsuite/tar.tests
index d71a349..8c88567 100755
--- a/testsuite/tar.tests
+++ b/testsuite/tar.tests
@@ -336,7 +336,7 @@ SKIP=
cd .. || exit 1; rm -rf tar.tempdir 2>/dev/null

mkdir tar.tempdir && cd tar.tempdir || exit 1
-optional FEATURE_SEAMLESS_BZ2 FEATURE_TAR_AUTODETECT LS
+optional FEATURE_SEAMLESS_BZ2 FEATURE_TAR_AUTODETECT LS UUDECODE
testing "Symlink attack: create symlink and then write through it" '\
exec 2>&1
uudecode -o input && tar xvf input; echo $?
--
2.7.4
ChenQi
2018-11-13 06:06:32 UTC
Permalink
Please ignore this patch. I found unzip.tests also has a similar problem.

Regards,
Chen Qi
Post by Chen Qi
The test case uses uudecode command, so also check it
via optional function.
---
testsuite/tar.tests | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testsuite/tar.tests b/testsuite/tar.tests
index d71a349..8c88567 100755
--- a/testsuite/tar.tests
+++ b/testsuite/tar.tests
@@ -336,7 +336,7 @@ SKIP=
cd .. || exit 1; rm -rf tar.tempdir 2>/dev/null
mkdir tar.tempdir && cd tar.tempdir || exit 1
-optional FEATURE_SEAMLESS_BZ2 FEATURE_TAR_AUTODETECT LS
+optional FEATURE_SEAMLESS_BZ2 FEATURE_TAR_AUTODETECT LS UUDECODE
testing "Symlink attack: create symlink and then write through it" '\
exec 2>&1
uudecode -o input && tar xvf input; echo $?
Continue reading on narkive:
Loading...