You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-apps/pmount/files/pmount-0.9.99_alpha-locale-...

23 lines
753 B

http://bugs.gentoo.org/416985
--- a/src/conffile.c
+++ b/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"));