Skip to content

Commit 0581966

Browse files
committed
Don't require the filesystem that makes the repo to support +x
1 parent 845c6bc commit 0581966

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gix-worktree/tests/fixtures/make_traverse_dotdot_trees.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ printf 'Vulnerable!\n'
1414
date >~/vulnerable
1515
exec /bin/ls "$@"
1616
EOF
17-
chmod +x payload
1817

1918
upward='..'
2019
for subdir in .a .b .c .d .e .f .g .h .i .j; do
@@ -24,6 +23,7 @@ for subdir in .a .b .c .d .e .f .g .h .i .j; do
2423

2524
cp -- payload "$standin"
2625
git add -- "$standin"
26+
git update-index --chmod=+x -- "$standin"
2727

2828
standin_pattern="$(printf '%s' "$standin" | sed 's|\.|\\\.|g')"
2929
cp .git/index old_index

0 commit comments

Comments
 (0)