🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.folklore.computers
Article #502

Re: Weird UNIX commands revisited.

#502
From: ta... David C Lawrence
Date: Sat, 30 Dec 1989 02:54
19 lines
1547 bytes
In <1989Dec26.200651.12647@sobmips.UUCP> roe@sobmips.UUCP (r.peterson) writes:
> Actually, this has nothing to do with the ownership of the /dev/tty?? device
> node.  Window has not made a utmp entry for you - so, as far as write and
> talk are concerned, you are *not logged in*.

Or anything else that uses getlogin(), as who and ftp (for the default
login name) do.  The latter seems to have been fixed in the ftp I just
tried, at least to where it will use getpwnam() rather than just use
"nobody", but "who am i" just came back with "turing.cs.rpi.edu!     [...]".
(Sun4, SunOS 4.0.3, by the way.)

getlogin() definitely makes my Top 10 Most Hated C Calls list.  A
rather odd little list.  The calls themselves are of course not really
evil.  Maybe I should change the title of the list, to something like
"Top 10 Most Abused [on purpose or accidentally] C Calls" or such.

Dave
-- 
   (setq mail '("ta...@cs.rpi.edu" "ta...@ai.mit.edu" "tale@rpitsmts.bitnet"))
Technical Details
Message-ID: <R&FM0%@rpi.edu>
Path: mbox-mo1.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!tale
References: <1989Dec18.221721.6561@sun.soe.clarkson.edu> <1989Dec26.200651.12647@sobmips.UUCP>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!tale
From: ta...@cs.rpi.edu (David C Lawrence)
Newsgroups: alt.folklore.computers
Subject: Re: Weird UNIX commands revisited.
Message-ID: <R&FM0%@rpi.edu>
Date: 30 Dec 89 02:54:58 GMT
References: <1989Dec18.221721.6561@sun.soe.clarkson.edu> <1989Dec26.200651.12647@sobmips.UUCP>
Organization: Rensselaer Polytechnic Institute, Troy NY
Lines: 19
Posted: Sat Dec 30 03:54:58 1989
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit