[5575] in testers
Re: Athena 9.2.7: sshd? tcsh? sets bogus REMOTEHOST
daemon@ATHENA.MIT.EDU (Robert A Basch)
Wed Jun 25 18:58:04 2003
From: Robert A Basch <rbasch@MIT.EDU>
To: Ken Raeburn <raeburn@mit.edu>
Cc: testers@mit.edu
In-Reply-To: <tx18yrperul.fsf@mit.edu>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Message-Id: <1056581881.15992.4.camel@abulia.mit.edu>
Mime-Version: 1.0
Date: 25 Jun 2003 18:58:01 -0400
On Wed, 2003-06-25 at 18:04, Ken Raeburn wrote:
> Oh, right, I see. So is the tcsh REMOTEHOST code useful for anything
> at all, aside from maybe ancient (non-encrypting) rsh?
Well, the getpeername() check is pretty useless, but it does seem to set
REMOTEHOST correctly when the input is a tty, as it then gets the host
name from utmp.
Bob