about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsthen <sthen>2013-06-03 20:33:17 +0000
committersthen <sthen>2013-06-03 20:33:17 +0000
commit09f327556155b606f108a920c8b8125cdd4f08bd (patch)
tree661b84b4d346fbba5ed3816a1aa86d41d444825b
parent692d341dfc6b059db570356e9dfadba92dc93f19 (diff)
downloadcwm-09f327556155b606f108a920c8b8125cdd4f08bd.tar.gz
cwm-09f327556155b606f108a920c8b8125cdd4f08bd.tar.xz
cwm-09f327556155b606f108a920c8b8125cdd4f08bd.zip
Unlike other parse.y variants, cwm's allowed 'command xx /path/to/xx' without
quotes. Reinstate this support lost in recent sync diff and add a comment to
show that it's intentional. ok okan@
-rw-r--r--parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/parse.y b/parse.y
index 0e67ba1..e40177f 100644
--- a/parse.y
+++ b/parse.y
@@ -465,13 +465,13 @@ nodigits:
 		}
 	}
 
+/* Similar to other parse.y copies, but also allows '/' in strings */
 #define allowed_in_string(x) \
 	(isalnum(x) || (ispunct(x) && x != '(' && x != ')' && \
 	x != '{' && x != '}' && x != '<' && x != '>' && \
-	x != '!' && x != '=' && x != '/' && x != '#' && \
-	x != ','))
+	x != '!' && x != '=' && x != '#' && x != ','))
 
-	if (isalnum(c) || c == ':' || c == '_' || c == '*') {
+	if (isalnum(c) || c == ':' || c == '_' || c == '*' || c == '/') {
 		do {
 			*p++ = c;
 			if ((unsigned)(p-buf) >= sizeof(buf)) {