[sudo-commits] sudo changeset 7989:6b22be4d09f0

Todd C. Miller Todd.Miller at courtesan.com
Wed Apr 11 16:02:15 EDT 2012

changeset:	7989:6b22be4d09f0 in /home/hg/sudo
details:	http://www.sudo.ws/repos/sudo/rev/6b22be4d09f0
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Wed Apr 11 14:48:08 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.
	TODO: write /dev/ traversal code for the generic sudo_ttyname_dev().


 config.h.in   |    3 +
 configure     |   28 ++++--
 configure.in  |    4 +-
 src/ttyname.c |  234 +++++++++++++++++++++++++++++++++++++++++----------------
 4 files changed, 192 insertions(+), 77 deletions(-)

More information about the sudo-commits mailing list