Re: weird utmp/perl problem

1998-04-26 Thread Roderick Schertler
On 25 Apr 1998 11:47:34 -0700, Guy Maor [EMAIL PROTECTED] said: I don't understand how this would work. How do you get the canonical ttyname from /dev/tty ? Sorry, you're right of course, that didn't make sense. I've looked at the way libc5's getlogin() works and it uses the first of stdin,

Re: weird utmp/perl problem

1998-04-26 Thread Mark W. Eichin
*traditionally*, you openned /dev/tty, did an fstat(), and the kernel filled in the real major/minor numbers for the tty you had; then you scanned /dev/ (or wherever depending on how creative your system was) and stat'ed things until you got a matching major/minor device number. (ttyname did all

Re: weird utmp/perl problem

1998-04-25 Thread Guy Maor
Roderick Schertler [EMAIL PROTECTED] writes: It's supposed to open /dev/tty instead of using stdin. This is the way it works on all the systems I could get people to check for me, which are Linux with libc5, AIX 4.2, Solaris 2.4, Solaris 2.5, DG/UX 4.11 and FreeBSD 2.2.2-R. I don't

Re: weird utmp/perl problem

1998-04-23 Thread Guy Maor
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?

Re: weird utmp/perl problem

1998-04-23 Thread Roderick Schertler
On 23 Apr 1998 04:56:12 -0700, Guy Maor [EMAIL PROTECTED] said: Roderick Schertler [EMAIL PROTECTED] writes: 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

Re: weird utmp/perl problem

1998-04-22 Thread Roderick Schertler
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

weird utmp/perl problem

1998-04-21 Thread B. Bell
Okay, I've got a strange problem here. I'm trying to build a .deb, using the devscripts tools and dpkg-dev... I get a utmp error when I try to build: $ build no utmp entry available, using value of LOGNAME (brad) at /usr/lib/dpkg/controllib.pl line 16. okay, not a disaster, there, but

Re: weird utmp/perl problem

1998-04-21 Thread Guy Maor
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. Guy -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]

Re: weird utmp/perl problem

1998-04-21 Thread Karl M. Hegbloom
Guy == Guy Maor [EMAIL PROTECTED] writes: Guy It's just a silly bug. It calls that code from some scripts Guy which have fd0 dup'd elsewhere, so isatty(0) is false and Guy getlogin() fails. Will someone please fix it? It's really annoying. Is it in the bug sys? -- To