summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsturm <sturm@openbsd.org>2003-11-23 15:18:59 +0000
committersturm <sturm@openbsd.org>2003-11-23 15:18:59 +0000
commitd6aed69a9347fc924441fc04e59a081a9743aa22 (patch)
treedb8ee9f28c060705fff2d4b34aaa60e79371f9dd
parentFix diff -q exit value which was broken in last commit. (diff)
downloadwireguard-openbsd-d6aed69a9347fc924441fc04e59a081a9743aa22.tar.xz
wireguard-openbsd-d6aed69a9347fc924441fc04e59a081a9743aa22.zip
allow underscore in usernames, from Niels/NetBSD
ok henning@
-rw-r--r--bin/systrace/lex.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/systrace/lex.l b/bin/systrace/lex.l
index 7e20e0cc4e4..db1b8f3e68a 100644
--- a/bin/systrace/lex.l
+++ b/bin/systrace/lex.l
@@ -1,4 +1,4 @@
-/* $OpenBSD: lex.l,v 1.15 2003/07/19 11:48:58 sturm Exp $ */
+/* $OpenBSD: lex.l,v 1.16 2003/11/23 15:18:59 sturm Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
@@ -101,7 +101,7 @@ as { return AS; }
"!=" { return NEQUAL; }
"<" { return LESSER; }
">" { return GREATER; }
-[\$A-Za-z][\.\(\)\/A-Za-z_\-0-9]* { yylval.string = strdup(yytext); return STRING; }
+[\_\$A-Za-z][\.\(\)\/A-Za-z_\-0-9]* { yylval.string = strdup(yytext); return STRING; }
[0-9]+ { yylval.number = atoi(yytext); return NUMBER; }
\" { BEGIN(quote);
*quotestr = '\0';