tests: fix tarball creation
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@googlemail.com>
This commit is contained in:
1 parent
de40fe3350
commit
45ad4ce552
1 file changed
+1
-2
+1
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user