Rename struct sudo_user -> struct sudo_user_context.

Also rename the sudo_user global to user_ctx.
This commit is contained in:
Todd C. Miller
2023-08-12 10:39:47 -06:00
parent d148e7d8f9
commit bd8cccb5dd
21 changed files with 199 additions and 199 deletions

View File

@@ -1163,8 +1163,8 @@ create_admin_success_flag(void)
debug_return_int(true);
/* Check whether the user is in the sudo or admin group. */
if (!user_in_group(sudo_user.pw, "sudo") &&
!user_in_group(sudo_user.pw, "admin"))
if (!user_in_group(user_ctx.pw, "sudo") &&
!user_in_group(user_ctx.pw, "admin"))
debug_return_int(true);
/* Build path to flag file. */