Set user_tty to "unknown" if there is no tty, like sudo 1.7 does
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 21 May 2010 16:19:55 +0000 (12:19 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 21 May 2010 16:19:55 +0000 (12:19 -0400)
commit529bfcf67467dc12b5f5decfe3d46b236cabbbc5
tree1e878cee669a9c6479ebb37576f1ce9e266100b3
parent064cffd5751c80887d15265bb374aa7717528964
Set user_tty to "unknown" if there is no tty, like sudo 1.7 does
(it is used when logging).  Note that user_ttypath will still be
NULL if there is no tty.
plugins/sudoers/sudoers.c