mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-23 10:27:45 +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:
parent
513574ce10
commit
a2d27bc9ec
@ -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 */
|
/* Get the password unless the auth function will do it for us */
|
||||||
if (!standalone) {
|
if (!standalone) {
|
||||||
if (IS_NONINTERACTIVE(&auth_switch[0])) {
|
if (IS_NONINTERACTIVE(&auth_switch[0])) {
|
||||||
status = AUTH_NONINTERACTIVE;
|
success = AUTH_NONINTERACTIVE;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
pass = auth_getpass(prompt, SUDO_CONV_PROMPT_ECHO_OFF, callback);
|
pass = auth_getpass(prompt, SUDO_CONV_PROMPT_ECHO_OFF, callback);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user