Move yyrestart() into visudo.c since it might not get called in yywrap
if we get a parse error (and we only reread the file on error anyway).
yywrap()
{
- /* 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();
yywrap()
{
- /* 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();