From: Todd C. Miller Date: Tue, 28 Sep 2004 20:50:33 +0000 (+0000) Subject: Rewind sudoers_fp now that sudoers_lookup() doesn't do it for us. X-Git-Tag: SUDO_1_7_0~925 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27e83bacb10446295f9089c348c86911e5aa77fe;p=sudo Rewind sudoers_fp now that sudoers_lookup() doesn't do it for us. --- diff --git a/mon_systrace.c b/mon_systrace.c index 4339d642d..9a2ed094c 100644 --- a/mon_systrace.c +++ b/mon_systrace.c @@ -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);