Skip to content
Snippets Groups Projects
Commit cf55a54b authored by Ben Gamari's avatar Ben Gamari Committed by Marge Bot
Browse files

mk/relpath: Fix quoting

Previously there were two instances in this script which lacked proper
quoting. This resulted in `relpath` invocations in the binary
distribution Makefile producing incorrect results on Windows, leading to
confusing failures from `sed` and the production of empty package
registrations.

Fixes #24538.
parent 594bee0b
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ target="$2"
common_part="$src"
result=""
while test "${target#$common_part}" = "${target}" ; do
while test "${target#"$common_part"}" = "${target}" ; do
#echo "common_part is now : \"$common_part\""
#echo "result is now : \"$result\""
#echo "target#common_part : \"${target#$common_part}\""
......@@ -39,7 +39,7 @@ fi
# since we now have identified the common part,
# compute the non-common part
forward_part="${target#$common_part}"
forward_part="${target#"$common_part"}"
#echo "forward_part = \"$forward_part\""
if test -n "$result" && test -n "$forward_part" ; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment