aboutsummaryrefslogtreecommitdiffstats
path: root/main/busybox/test-fix-tarball-creation.patch
blob: a071dc4f2399d0301111f95d0f831cb41d2b450f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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).

diff -upr a/testsuite/tar.tests b/testsuite/tar.tests
--- a/testsuite/tar.tests	2021-12-26 17:53:21.000000000 +0100
+++ b/testsuite/tar.tests	2022-03-02 20:48:55.873880158 +0100
@@ -67,7 +67,7 @@ testing "tar hardlinks and repeated file
 ln input_hard1 input_hard2
 mkdir input_dir
 >input_dir/file
-chmod -R 644 *
+for f in *; do [ "$f" = "input_dir" ] || chmod -R 644 "$f"; done
 chmod    755 input_dir
 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/"