Skip to content

Commit 0c4bc48

Browse files
committed
8356820: fixpath should allow + in paths on Windows
Reviewed-by: erikj
1 parent a96424b commit 0c4bc48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

make/scripts/fixpath.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,12 @@ function import_path() {
157157
if [[ $? -eq 0 && -e "$unixpath" ]]; then
158158
if [[ ! "$winpath" =~ ^"$ENVROOT"\\.*$ ]] ; then
159159
# If it is not in envroot, it's a generic windows path
160-
if [[ ! $winpath =~ ^[-_.:~\\a-zA-Z0-9]*$ ]] ; then
160+
if [[ ! $winpath =~ ^[-_.:~+\\a-zA-Z0-9]*$ ]] ; then
161161
# Path has forbidden characters, rewrite as short name
162162
# This monster of a command uses the %~s support from cmd.exe to
163163
# reliably convert to short paths on all winenvs.
164164
shortpath="$($CMD /q /c for %I in \( "$winpath" \) do echo %~sI 2>/dev/null | tr -d \\n\\r)"
165-
if [[ ! $shortpath =~ ^[-_.:~\\a-zA-Z0-9]*$ ]] ; then
165+
if [[ ! $shortpath =~ ^[-_.:~+\\a-zA-Z0-9]*$ ]] ; then
166166
if [[ $QUIET != true ]]; then
167167
echo fixpath: failure: Path "'"$path"'" could not be converted to short path >&2
168168
fi

0 commit comments

Comments
 (0)