Expander: escape backslashes in path.

Fixes #9969.
This commit is contained in:
Adrien Destugues 2014-12-04 10:20:32 +01:00
parent db7fc944bd
commit 7291c0a8d9

View File

@ -64,7 +64,7 @@ ExpanderThread::ThreadStartup()
BPath path(&srcRef);
BString pathString(path.Path());
pathString.CharacterEscape("\"$`", '\\');
pathString.CharacterEscape("\\\"$`", '\\');
pathString.Prepend("\"");
pathString.Append("\"");
cmd.ReplaceAll("%s", pathString.String());