[git commit] tests: fix tarball creation

Denys Vlasenko vda.linux at googlemail.com
Sun Oct 11 22:00:55 UTC 2026


commit: https://git.busybox.net/busybox/commit/?id=45ad4ce55259c03310d73da22be9c68ef3f32c37
branch: https://git.busybox.net/busybox/log/?h=master

Without this patch, the chmod 644 invocation takes away the executable
bit from the input_dir directory, thus preventing the chmod of the files
within the input_dir directory (due to lack of x-bit).

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 testsuite/tar.tests | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/testsuite/tar.tests b/testsuite/tar.tests
index efd8f4855..40ff49477 100755
--- a/testsuite/tar.tests
+++ b/testsuite/tar.tests
@@ -67,8 +67,7 @@ testing "tar hardlinks and repeated files" '\
 ln input_hard1 input_hard2
 mkdir input_dir
 >input_dir/file
-chmod -R 644 *
-chmod    755 input_dir
+chmod -R a-x,u+rwX,go+rX *
 tar cf test.tar input input_dir/ input_hard1 input_hard2 input_hard1 input_dir/ input
 tar tvf test.tar | sed "s/.*[0-9] input/input/"
 rm -rf input_dir


More information about the busybox-cvs mailing list