On 3/2/07, Matus UHLAR - fantomas <[EMAIL PROTECTED]> wrote:
I'd say that logname detects logged user by checking terminal of stdin file
handle...

Yup:

$ echo | strace -o'|grep readlink' logname
readlink("/proc/self/fd/0", "pipe:[5242235]", 511) = 14

$ strace -o'|grep readlink' logname
readlink("/proc/self/fd/0", "/dev/pts/7", 511) = 10

--
Michael A. Marsh
http://www.umiacs.umd.edu/~mmarsh
http://mamarsh.blogspot.com


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to