aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsthen2013-06-03 20:33:17 +0000
committersthen2013-06-03 20:33:17 +0000
commit98651cd92782ee121b55843cb83bd25c406ab84e (patch)
treef1032d7c8d1467ef2d67c01c351f8b7c8643e24b
parent806eaefbddc237cd544a9f1aa3715f3c429e08ae (diff)
downloadcwm-98651cd92782ee121b55843cb83bd25c406ab84e.tar.gz
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.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/parse.y b/parse.y
index c21461c..c076c9f 100644
--- a/parse.y
+++ b/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.44 2013/05/22 16:32:15 okan Exp $ */
+/* $OpenBSD: parse.y,v 1.45 2013/06/03 20:33:17 sthen Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -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)) {