[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: weird utmp/perl problem



Roderick Schertler <roderick@argon.org> writes:

> On 21 Apr 1998 08:55:51 -0700, karlheg@inetarena.com (Karl M. Hegbloom) said:
> > 
> >> It's just a silly bug.  It calls that code from some scripts which
> >> have fd0 dup'd elsewhere, so isatty(0) is false and getlogin() fails.
> > 
> > Will someone please fix it?  It's really annoying.  Is it in the bug
> > sys?
> 
> The bug is in libc6.  getlogin() is supposed to work even if isatty(0)
> is false.  It is bug #17528.

How can it?  If isatty() is false, then ttyname(3) is null, so
getlogin() can't look up the entry in utmp.

The bug is fixed in Klee's version.  He says that he will upload that
soon.


Guy


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: