No need to declare tgetpass_flags, it is already in sudo.h.

This commit is contained in:
Todd C. Miller
2023-03-24 19:10:19 -06:00
parent 9fd787343d
commit a5b11a58b7

View File

@@ -38,8 +38,6 @@
#include "sudo_plugin.h" #include "sudo_plugin.h"
#include "sudo_plugin_int.h" #include "sudo_plugin_int.h"
extern int tgetpass_flags; /* XXX */
/* /*
* Sudo conversation function. * Sudo conversation function.
*/ */
@@ -94,7 +92,7 @@ sudo_conversation(int num_msgs, const struct sudo_conv_message msgs[],
bool raw_tty = false; bool raw_tty = false;
if (ISSET(msg->msg_type, SUDO_CONV_PREFER_TTY) && if (ISSET(msg->msg_type, SUDO_CONV_PREFER_TTY) &&
!ISSET(tgetpass_flags, TGP_STDIN)) { !ISSET(flags, TGP_STDIN)) {
ttyfd = open(_PATH_TTY, O_WRONLY); ttyfd = open(_PATH_TTY, O_WRONLY);
raw_tty = sudo_term_is_raw(ttyfd); raw_tty = sudo_term_is_raw(ttyfd);
} else { } else {