blob: c96fc0554522df2fb9a55400705449ddacbc87d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
http://bugs.gentoo.org/416985
--- src/conffile.c
+++ src/conffile.c
@@ -372,7 +372,7 @@ static int cf_prepare_regexps()
/* A regexp matching a boolean value*/
if( regcomp(&declaration_RE,
- "^[[:blank:]]*([-a-zA-Z_]+)[[:blank:]]*"
+ "^[[:blank:]]*([-[:alpha:]_]+)[[:blank:]]*"
"=[[:blank:]]*(.*)$",
REG_EXTENDED )) {
perror(_("Could not compile regular expression for boolean values"));
@@ -392,7 +392,7 @@ static int cf_prepare_regexps()
}
if( regcomp(&uint_RE,
- "^[[:blank:]]*([a-zA-Z_]+)[[:blank:]]*"
+ "^[[:blank:]]*([[:alpha:]_]+)[[:blank:]]*"
"=[[:blank:]]*([0-9]+)$",
REG_EXTENDED )) {
perror(_("Could not compile regular expression for integer values"));
|