1 Feb 2004 01:13
Re: Strange console output
Christian Biere <christianbiere <at> gmx.de>
2004-02-01 00:13:49 GMT
2004-02-01 00:13:49 GMT
Hernani Marques Madeira wrote: > The ttyp* are set to network what's the reason why the last snip above > has as TERM networ (where's the terminating k? :) This is a bug in getttyent() - thus also in getttyname(). The attached patch should fix this problem and a couple of others. -- Christian
Index: lib/libc/gen/getttyent.c
===================================================================
RCS file: /cvsroot/src/lib/libc/gen/getttyent.c,v
retrieving revision 1.20
diff -u -r1.20 getttyent.c
--- lib/libc/gen/getttyent.c 2003/08/07 16:42:51 1.20
+++ lib/libc/gen/getttyent.c 2004/02/01 00:08:39
<at> <at> -56,7 +56,7 <at> <at>
__weak_alias(setttyent,_setttyent)
#endif
-static char zapchar;
+static char *comment;
static FILE *tf;
static size_t lineno = 0;
static char *skip __P((char *));
<at> <at> -93,12 +93,13 <at> <at>
free(line);
for (;;) {
(Continue reading)
RSS Feed