Take $ENV{'USER'} for the login name, as rshd, telnetd and rlogind all
set it. I'm still at a loss to explain why getlogin and `logname` (which make a supposedly secure system call) are returning somebody else's username when cvs (a non privileged process) is run on the end of a rsh. If I do: rsh freefall 'print getlogin' it always seems to work... (If this doesn't work after this commit, I might commandeer Jeffrey Hsu's login.. :-) This commit may say 'hsu' though.)
Please register or sign in to comment