[hacknews] login

henry (08/26/82)

Figured out a way to test whether login(1) is being invoked from the
top level or not:  testing whether its parent is process #1 is not
quite 100% right, but close enough for all practical purposes.  Changed
login to refuse to cooperate if getppid() != 1.  Took the opportunity
to do some minor cleanup in the code and check usage a bit more closely.

henry@utzoo.UUCP (Henry Spencer) (10/30/84)

Login(1) has been changed to initialize the ME environment variable.
The immediate reason is for some shell command-usage experiments,
although it may prove useful in general since at present everyone's
.profile contains an explicit initialization for ME.
-- 
				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,linus,decvax}!utzoo!henry