script & lock
Doug Gwyn
gwyn at smoke.BRL.MIL
Mon Jan 2 14:37:57 AEST 1989
In article <17972 at adm.BRL.MIL> drears at ardec.arpa (Dennis G. Rears (FSAC)) writes:
> This happens on a VAX 8600 running ULTRIK but does not happen on
>Goulds or Pyramids. I have a lock program I wrote several years
>ago. When I run it on top of /usr/ucb/script I get a Bus Error when I
>type in my password. Any idea why? ...
getlogin() can, and probably does when run under "script", return
NULL. You didn't test for this and so you tried to strcmp() with
the second argument NULL. strcmp() trusted you and you let it down..
More information about the Comp.unix.wizards
mailing list