Add a sudoers_context struct that embeds the user and runas structs.

This commit is contained in:
Todd C. Miller
2023-08-20 16:27:08 -06:00
parent 1b9fb405a3
commit 2d2529a15e
36 changed files with 920 additions and 912 deletions

View File

@@ -50,7 +50,7 @@ sudo_passwd_init(struct passwd *pw, sudo_auth *auth)
debug_return_int(AUTH_SUCCESS);
#ifdef HAVE_SKEYACCESS
if (skeyaccess(pw, user_ctx.tty, NULL, NULL) == 0)
if (skeyaccess(pw, ctx.user.tty, NULL, NULL) == 0)
debug_return_int(AUTH_FAILURE);
#endif
sudo_setspent();