summaryrefslogtreecommitdiffstats
path: root/src/util.cc
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2014-05-30 01:14:48 (GMT)
committerNico Weber <nicolasweber@gmx.de>2014-05-30 01:14:51 (GMT)
commit8d84ba41dee869935243da46e4bf61fc84117676 (patch)
treecd6cef6fb200854570fe153cb431839c0bf48b16 /src/util.cc
parent6915955e370e74d987bb95946a1cf71d9aafb61b (diff)
downloadNinja-8d84ba41dee869935243da46e4bf61fc84117676.zip
Ninja-8d84ba41dee869935243da46e4bf61fc84117676.tar.gz
Ninja-8d84ba41dee869935243da46e4bf61fc84117676.tar.bz2
Allow + in filenames without escaping
Due to #690, file.c++ used to be escaped. + seems as safe as -, so allow it to not be escaped, to keep compile command lines with a fairly common extension slightly cleaner.
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.cc b/src/util.cc
index 24d231f..484b0c1 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -183,6 +183,7 @@ static inline bool IsKnownShellSafeCharacter(char ch) {
switch (ch) {
case '_':
+ case '+':
case '-':
case '.':
case '/':