[sudo-commits] sudo changeset 15104:8d5664300c7e

Todd C. Miller Todd.Miller at sudo.ws
Tue Oct 17 09:39:05 MDT 2023


changeset:	15104:8d5664300c7e in /raid/repos/sudo
tags:		tip
details:	https://www.sudo.ws/repos/sudo/rev/8d5664300c7e
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Mon Oct 16 19:27:27 2023 -0600
files:		lib/util/term.c

Log Message:
	Better handling of multiple sudo processes modifying terminal settings.
	1. Lock the terminal before tcgetattr/tcsetattr
	2. Don't restore terminal settings if changed by another process
	3. Don't set terminal to raw mode if it is already raw
	GitHub issue #312


diffstat:

 lib/util/term.c |  284 +++++++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 209 insertions(+), 75 deletions(-)



More information about the sudo-commits mailing list