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-auth/pam_blue/files/pam_blue-0.9.0-char-locales...

18 lines
666 B

https://bugs.gentoo.org/412941
fix matching in various locales
patch by Leho Kraav <leho@kraav.com>
--- a/src/lexer.l
+++ b/src/lexer.l
@@ -28,7 +28,7 @@
bluemac { return BLUEMAC; }
@ { return AT;}
; { return SEMICOLON; }
-[a-zA-Z][a-zA-Z0-9_]* { yylval.word = (char *) strdup(yytext); return WORD; }
+[[:alpha:]][[:alnum:]_-]* { yylval.word = (char *) strdup(yytext); return WORD; }
{HXDIGD}{HXDIGD}{HXDIG} { yylval.word = (char *) strdup(yytext); return MAC; }
[0-9][0-9]* { yylval.value = atoi(yytext); return DIGIT; }
= { return EQUAL; }