[sudo-commits] sudo changeset 8119:632f8e028191

Todd C. Miller Todd.Miller at courtesan.com
Tue May 29 16:31:44 EDT 2012

changeset:	8119:632f8e028191 in /home/hg/sudo
details:	http://www.sudo.ws/repos/sudo/rev/632f8e028191
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Wed May 23 12:46:39 2012 -0400

Log Message:
	Rototill code to determine the tty.  For Linux, we now look up the
	tty device in /proc/pid/stat instead of trying to open /proc/pid/fd/[0-2].
	The sudo_ttyname_dev() function maps the given device number to a
	string.  On BSD, we can use devname().  On Solaris, _ttyname_dev()
	does what we want.  For others we do a breadth-first search of /dev.


 config.h.in  |   20 +++
 configure    |  205 ++++++++++++++++++++++--------
 configure.in |   10 +
 ttyname.c    |  382 ++++++++++++++++++++++++++++++++++++++++++++++++++++++----
 4 files changed, 529 insertions(+), 88 deletions(-)

More information about the sudo-commits mailing list