Path: utzoo!attcan!uunet!lll-winken!ames!haven!cvl!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.unix.wizards Subject: Re: script & lock Keywords: getlogin(3) Message-ID: <15469@mimsy.UUCP> Date: 14 Jan 89 14:49:40 GMT References: <17972@adm.BRL.MIL> <596@cf-cm.UUCP> <15399@mimsy.UUCP> <844@auspex.UUCP> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 16 >>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@auspex.UUCP> guy@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@mimsy.umd.edu Path: uunet!mimsy!chris