Rewind sudoers_fp now that sudoers_lookup() doesn't do it for us.

This commit is contained in:
Todd C. Miller
2004-09-28 20:50:33 +00:00
parent f4b1891e02
commit 27e83bacb1

View File

@@ -657,6 +657,7 @@ check_exec(fd, askp, ansp)
def_authenticate = FALSE;
runas_pw = info->pw;
user_runas = &info->pw->pw_name;
rewind(sudoers_fp);
validated = sudoers_lookup(0);
#ifdef DEBUG
warnx("intercepted: %s %s in %s -> 0x%x", user_cmnd, user_args, user_cwd, validated);