🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs
Article #7

Re: "who am i" from a ptty

#7
From: Dave Bloom
Date: Mon, 25 Nov 1985 14:30
20 lines
1520 bytes
In article <191@pluto.UUCP>, warren@pluto.UUCP (Warren Burstein) writes:
> I just discovered that "who am i" prints nothing if stdin is a ptty.
> It gets the name from ttyname, then searches /etc/utmp for a line
> matching the ptty.  Since no one is logged in on a ptty it fails.
> 
> This was observed under Pyramid OS-X which pretends to be both BSD and
> SysV.

This is a problem with OSx 2.3.... Pyramid maintained such a separation
between 4.2 and SysV that the SysV end knows nothing about people logged in
under Ethernet, a problem since corrected under OSx 2.5.
-- 

-------------------------------------------------------------------------------
      allegra\					       Dave Bloom
      harvard \ pyramid\
       seismo  \  pyrnj >!andromeda!dave         HOME: (201) 868-1764
     ut-sally   >!topaz/			 WORK: (201) 648-5083
       sri-iu  /
ihnp4!packard /		           "You're never alone with a schizophrenic...."
Technical Details
Message-ID: <38@andromeda.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!bonnie!akgua!gatech!seismo!caip!topaz!andromeda!dave
References: <191@pluto.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site andromeda.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!bonnie!akgua!gatech!seismo!caip!topaz!andromeda!dave
From: dave@andromeda.UUCP (Dave Bloom)
Newsgroups: net.bugs
Subject: Re: "who am i" from a ptty
Message-ID: <38@andromeda.UUCP>
Date: Mon, 25-Nov-85 09:30:22 EST
Article-I.D.: andromed.38
Posted: Mon Nov 25 09:30:22 1985
Date-Received: Wed, 27-Nov-85 05:24:46 EST
References: <191@pluto.UUCP>
Organization: Rutgers University, Newark, N.J.
Lines: 20