Roderick Schertler <[EMAIL PROTECTED]> writes: > On 21 Apr 1998 08:55:51 -0700, [EMAIL PROTECTED] (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 [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]