]> granicus.if.org Git - sudo/commit
When trying to determine the tty, fall back on /proc/ppid/fd/{0,1,2}
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 3 Jan 2012 15:47:33 +0000 (10:47 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 3 Jan 2012 15:47:33 +0000 (10:47 -0500)
commit4da65677bd7caadcdf4f9130fc6ae35392e6904a
tree35c9c0de85fdcb9aeb62db7aecbfa872ae9a2d22
parent5bc0756406c6bd666105fb3d0e7782a6891c9ac9
When trying to determine the tty, fall back on /proc/ppid/fd/{0,1,2}
if the main process's fds 0-2 are not hooked up to a tty.  Adapted
from a diff by Zdenek Behan.
src/sudo.c