aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsimon2008-04-29 20:17:28 +0000
committersimon2008-04-29 20:17:28 +0000
commit6117df1277a10bfa2de1e5c9b08c9e6a68d12c28 (patch)
treef4d4ca867cc66e074eb5cdbad54b1248b577b1ff
parent235ddd62cb618aa8dcec826e5e4307cb74d2396a (diff)
downloadcwm-6117df1277a10bfa2de1e5c9b08c9e6a68d12c28.tar.gz
Allow slashes in unquoted strings.
From Pierre Riteau Makes sense to oga@
Diffstat (limited to '')
-rw-r--r--parse.y7
1 files changed, 3 insertions, 4 deletions
diff --git a/parse.y b/parse.y
index a6fe7fa..c2ae94c 100644
--- a/parse.y
+++ b/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.5 2008/04/16 13:38:09 oga Exp $ */
+/* $OpenBSD: parse.y,v 1.6 2008/04/29 20:17:28 simon Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -402,10 +402,9 @@ nodigits:
#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)) {