Article View: comp.bugs.4bsd
Article #1234Re: finger @@@@@@@@
From: Guy Harris
Date: Tue, 15 Nov 1988 19:02
Date: Tue, 15 Nov 1988 19:02
11 lines
966 bytes
966 bytes
>In Sun OS 4.0, the null hostname appears to be treated as the >local host so you see the @@@@ effect. This appears to be generic to 4.3BSD; the routine "inet_addr" returns 0 when handed a null string. A null hostname gets passed to "gethostbyname", which quite reasonably says "no such host"; "finger" than tries handing it to "inet_addr", which returns 0 rather than -1. I don't see any reason why "inet_addr" shouldn't reject a null string - if there isn't at least *one* digit in the string, it's hard to see why it should be considered a valid Internet address specification.
Technical Details
Message-ID:
<457@auspex.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!auspex!guyReferences:
<7328@orstcs.CS.ORST.EDU> <968@uhnix1.uh.edu> <584@husc6.harvard.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!auspex!guy From: guy@auspex.UUCP (Guy Harris) Newsgroups: comp.bugs.4bsd Subject: Re: finger @@@@@@@@ Message-ID: <457@auspex.UUCP> Date: 15 Nov 88 19:02:52 GMT References: <7328@orstcs.CS.ORST.EDU> <968@uhnix1.uh.edu> <584@husc6.harvard.edu> Reply-To: guy@auspex.UUCP (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 11