From: Todd C. Miller Date: Tue, 21 Nov 1995 02:13:59 +0000 (+0000) Subject: now uses sudo_pw_ent X-Git-Tag: SUDO_1_4_0~105 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ddfc757539996e3cfc29b46d0b2eafa99354060c;p=sudo now uses sudo_pw_ent --- diff --git a/parse.yacc b/parse.yacc index 3376c40a9..d35d4e01d 100644 --- a/parse.yacc +++ b/parse.yacc @@ -37,6 +37,7 @@ static char rcsid[] = "$Id$"; #ifdef HAVE_UNISTD_H #include #endif /* HAVE_UNISTD_H */ +#include #include #include #include @@ -328,13 +329,13 @@ userlist : user ; user : NAME { - if (strcmp($1, user) == 0) + if (strcmp($1, sudo_pw_ent->pw_name) == 0) user_matches = TRUE; (void) free($1); $1 = NULL; /* XXX */ } | NETGROUP { - if (netgr_matches($1, NULL, user)) + if (netgr_matches($1, NULL, sudo_pw_ent->pw_name)) user_matches = TRUE; (void) free($1); $1 = NULL; /* XXX */