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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user