[sudo-commits] sudo changeset 15076:6287218771a9

Todd C. Miller Todd.Miller at sudo.ws
Fri Sep 22 11:01:42 MDT 2023


changeset:	15076:6287218771a9 in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/6287218771a9
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Thu Sep 21 14:13:17 2023 -0600
files:		src/exec_pty.c

Log Message:
	Set ec->term_raw to false even if sudo_term_restore() fails.

	Either the fd is not a terminal or we don't have the controlling
	terminal.  Either way, we can't know the current status of the
	terminal and will need to set to raw mode again (if possible).  Also
	make sure to set ec->term_raw to false if sudo_term_raw() fails.


diffstat:

 src/exec_pty.c |  13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)



More information about the sudo-commits mailing list