script & lock

Chris Torek chris at mimsy.UUCP
Thu Jan 12 23:57:07 AEST 1989


In article <6925 at june.cs.washington.edu> ka at june.cs.washington.edu
(Kenneth Almquist) writes:
>The source may be the final reference, but there's no law against looking
>things up in the manual.

(I like that line; shall have to use it myself someday...)

>	If getlogin is called within a process that is not attached to
>	a terminal or if there is no entry in /etc/utmp for the process's
>	terminal, getlogin returns a NULL pointer (0).

The key phrase is `if there is no entry in /etc/utmp'.  An entry with
utmp.ut_name[0]=='\0' is considered `no entry'.

Bad wording in the manual, to say the least.
-- 
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