mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-30 13:58:05 +00:00
Call YY_FLUSH_BUFFER macro in yywrap() to clean up any buffers that
might still exist. Call yyrestart() instead of using the deprecated YY_NEW_FILE macro.
This commit is contained in:
parent
f03cac3b87
commit
95eb54d99c
11
lex.yy.c
11
lex.yy.c
@ -2957,11 +2957,14 @@ fill_args(s, len, addspace)
|
||||
int
|
||||
yywrap()
|
||||
{
|
||||
#ifdef YY_NEW_FILE
|
||||
YY_NEW_FILE;
|
||||
#endif /* YY_NEW_FILE */
|
||||
|
||||
/* Don't reset the aliases if called by testsudoers. */
|
||||
/* Flush any buffers that might still exist. */
|
||||
YY_FLUSH_BUFFER;
|
||||
|
||||
/* Set file pointer to the beginning so we can re-run the parser. */
|
||||
yyrestart(yyin);
|
||||
|
||||
/* Free space used by the aliases unless called by testsudoers. */
|
||||
if (clearaliases)
|
||||
reset_aliases();
|
||||
|
||||
|
11
parse.lex
11
parse.lex
@ -415,11 +415,14 @@ fill_args(s, len, addspace)
|
||||
int
|
||||
yywrap()
|
||||
{
|
||||
#ifdef YY_NEW_FILE
|
||||
YY_NEW_FILE;
|
||||
#endif /* YY_NEW_FILE */
|
||||
|
||||
/* Don't reset the aliases if called by testsudoers. */
|
||||
/* Flush any buffers that might still exist. */
|
||||
YY_FLUSH_BUFFER;
|
||||
|
||||
/* Set file pointer to the beginning so we can re-run the parser. */
|
||||
yyrestart(yyin);
|
||||
|
||||
/* Free space used by the aliases unless called by testsudoers. */
|
||||
if (clearaliases)
|
||||
reset_aliases();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user