2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 18:08:23 +00:00

Fix return value for non-interactive mode for non-standalone auth methods.

AUTH_NONINTERACTIVE was being stored in the wrong variable.
This commit is contained in:
Todd C. Miller 2022-01-05 16:41:19 -07:00
parent 513574ce10
commit a2d27bc9ec

View File

@ -315,7 +315,7 @@ verify_user(struct passwd *pw, char *prompt, int validated,
/* Get the password unless the auth function will do it for us */
if (!standalone) {
if (IS_NONINTERACTIVE(&auth_switch[0])) {
status = AUTH_NONINTERACTIVE;
success = AUTH_NONINTERACTIVE;
goto done;
}
pass = auth_getpass(prompt, SUDO_CONV_PROMPT_ECHO_OFF, callback);