Skip to content

Commit 73e12b5

Browse files
committed
use cygpath to sanitize
1 parent fbba275 commit 73e12b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

qemu/configure

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ source_path=$(cd "$(dirname -- "$0")"; pwd)
200200

201201
# Avoid having D:\ in $PWD under MinGW.
202202
PWD=$(pwd)
203+
if command -v cygpath >/dev/null 2>&1; then
204+
PWD=$(cygpath -u "$PWD")
205+
fi
203206
if printf %s\\n "$source_path" "$PWD" | grep -q "[[:space:]:]";
204207
then
205208
error_exit "main directory $source_path or $PWD cannot contain spaces nor colons"

0 commit comments

Comments
 (0)