2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-05 00:35:14 +00:00

Rewind sudoers_fp in open_sudoers() instead of sudoers_lookup() so

we start at the right file position when reading include files.
This commit is contained in:
Todd C. Miller
2004-09-28 17:52:59 +00:00
parent fbb62c6805
commit 4b75a03343
2 changed files with 3 additions and 4 deletions

View File

@@ -109,8 +109,6 @@ sudoers_lookup(pwflag)
int error, nopass;
enum def_tupple pwcheck;
/* We opened _PATH_SUDOERS in check_sudoers() so just rewind it. */
rewind(sudoers_fp);
yyin = sudoers_fp;
yyout = stdout;