[sudo-commits] sudo changeset 10941:a79edafdd307

Todd C. Miller Todd.Miller at courtesan.com
Fri May 5 14:29:17 MDT 2017


changeset:	10941:a79edafdd307 in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/a79edafdd307
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Fri May 05 14:27:42 2017 -0600

Log Message:
	If any of std{in,out,err} are not hooked up to a tty only interpose
	ourselves with a pipe if the plugin will actually log the data.
	This avoids a problem with non-interactive commands where no tty
	is present where sudo will consume stdin even when log_input is not
	enabled in sudoers.

diffstat:

 src/exec_monitor.c |  34 ++++++++++++--------
 src/exec_pty.c     |  86 ++++++++++++++++++++++++++++++++++++++++-------------
 2 files changed, 84 insertions(+), 36 deletions(-)


More information about the sudo-commits mailing list