script & lock

Chris Torek chris at mimsy.UUCP
Sun Jan 15 00:49:40 AEST 1989


>>The getlogin code for Dynix (which claims 4.2 BSD compatibility) is
>>identical to the Ultrix code, so I assume that the code in both systems
>>is the 4.2 BSD code.

In article <844 at auspex.UUCP> guy at auspex.UUCP (Guy Harris) writes:
>If that is the case, I'm slightly surprised; unfortunately, I don't have
>4.2BSD code handy to check against.

I do.  The test is missing.

The test was usually unnecessary in 4.1BSD, where *getlogin()==0 would
be true only if you had actually logged out.  Script did not switch
control terminals, so getlogin() would find your real login entry.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.unix.wizards mailing list