[2916] in Kerberos-V5-bugs
telnet/584: OPOST and printf()
daemon@ATHENA.MIT.EDU (Dima Ruban)
Thu Apr 23 15:31:33 1998
Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: hartmans@MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, dima@burka.rdy.com
Date: Thu, 23 Apr 1998 12:19:19 -0700 (PDT)
From: dima@burka.rdy.com (Dima Ruban)
Reply-To: dima@burka.rdy.com
To: krb5-bugs@MIT.EDU
>Number: 584
>Category: telnet
>Synopsis: OPOST and printf()
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: hartmans
>State: open
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Thu Apr 23 15:20:00 EDT 1998
>Last-Modified:
>Originator: Dima Ruban
>Organization:
Best Internet Communications, Inc.
>Release: krb5-current-19980422
>Environment:
System: FreeBSD burka.rdy.com 2.2.6-STABLE FreeBSD 2.2.6-STABLE #111: Wed Apr 1 11:48:25 PST 1998 dima@burka.rdy.com:/a/src/sys/compile/BURKA i386
>Description:
When using "telnet -x -8 host", "Last login" line is shifted.
>How-To-Repeat:
"telnet -x -8 somewhere"
>Fix:
The problem is that OPOST terminal mode is set before "done.\n" was
printed.
OPOST is set by TerminalNewMode() function (telnet.c:2342)
and printf("done.\n") is called later on. (telnet.c:2352)
Clearly, this piece of the code should be re-worked.
>Audit-Trail:
>Unformatted: