Use the SUDO_CONV_PREFER_TTY flag during authentication.
This prevents the password and PAM prompts from being redirected. Bug #895
This commit is contained in:
@@ -227,7 +227,7 @@ pass_warn(void)
|
||||
if (def_insults)
|
||||
warning = INSULT;
|
||||
#endif
|
||||
sudo_printf(SUDO_CONV_ERROR_MSG, "%s\n", warning);
|
||||
sudo_printf(SUDO_CONV_ERROR_MSG|SUDO_CONV_PREFER_TTY, "%s\n", warning);
|
||||
|
||||
debug_return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user