summaryrefslogtreecommitdiff
path: root/bin/systrace
diff options
context:
space:
mode:
authorNikolay Sturm <sturm@cvs.openbsd.org>2003-11-23 15:19:00 +0000
committerNikolay Sturm <sturm@cvs.openbsd.org>2003-11-23 15:19:00 +0000
commit2e16350be3ee8619393561c3e42ee4fa58d6b385 (patch)
tree1663df2297f6d75b6b0e02d7d803d08dd8fb607b /bin/systrace
parente2422668b5180789f5b6dd4b419e718a43298a12 (diff)
allow underscore in usernames, from Niels/NetBSD
ok henning@
Diffstat (limited to 'bin/systrace')
-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';