Comments that begin with #- should not be parsed as uids.
This commit is contained in:
4
toke.l
4
toke.l
@@ -467,12 +467,12 @@ sudoedit {
|
|||||||
LEXTRACE("\n\t");
|
LEXTRACE("\n\t");
|
||||||
} /* throw away EOL after \ */
|
} /* throw away EOL after \ */
|
||||||
|
|
||||||
<INITIAL,STARTDEFS,INDEFS>#([^\n0-9-].*)?\n {
|
<INITIAL,STARTDEFS,INDEFS>#(-[^\n0-9].*|[^\n0-9-].*)?\n {
|
||||||
BEGIN INITIAL;
|
BEGIN INITIAL;
|
||||||
++sudolineno;
|
++sudolineno;
|
||||||
LEXTRACE("\n");
|
LEXTRACE("\n");
|
||||||
return(COMMENT);
|
return(COMMENT);
|
||||||
} /* return comments */
|
} /* comment, not uid/gid */
|
||||||
|
|
||||||
<*>. {
|
<*>. {
|
||||||
LEXTRACE("ERROR ");
|
LEXTRACE("ERROR ");
|
||||||
|
Reference in New Issue
Block a user