We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 845c6bc commit 0581966Copy full SHA for 0581966
gix-worktree/tests/fixtures/make_traverse_dotdot_trees.sh
@@ -14,7 +14,6 @@ printf 'Vulnerable!\n'
14
date >~/vulnerable
15
exec /bin/ls "$@"
16
EOF
17
-chmod +x payload
18
19
upward='..'
20
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
24
23
25
cp -- payload "$standin"
26
git add -- "$standin"
+ git update-index --chmod=+x -- "$standin"
27
28
standin_pattern="$(printf '%s' "$standin" | sed 's|\.|\\\.|g')"
29
cp .git/index old_index
0 commit comments