2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-05 08:45:28 +00:00

Pass explicit struct passwd * to create_admin_success_flag().

This commit is contained in:
Todd C. Miller
2023-08-12 10:39:49 -06:00
parent 30c49288f7
commit 930ca00252
4 changed files with 7 additions and 8 deletions

View File

@@ -538,7 +538,7 @@ sudoers_check_common(int pwflag)
}
/* Create Ubuntu-style dot file to indicate sudo was successful. */
if (create_admin_success_flag() == -1)
if (create_admin_success_flag(user_ctx.pw) == -1)
goto done;
/* Finally tell the user if the command did not exist. */