From danw@MIT.EDU Sun Feb 28 14:53:16 1999 Received: from MIT.EDU (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.69.0.28]) by rt-11.MIT.EDU (8.7.5/8.7.3) with SMTP id OAA11012 for ; Sun, 28 Feb 1999 14:53:16 -0500 Received: from ANTHARIA.MIT.EDU by MIT.EDU with SMTP id AA18747; Sun, 28 Feb 99 14:53:49 EST Received: by antharia.mit.edu (950413.SGI.8.6.12/4.7) id OAA15171; Sun, 28 Feb 1999 14:53:14 -0500 Message-Id: <199902281953.OAA15171@antharia.mit.edu> Date: Sun, 28 Feb 1999 14:53:14 -0500 From: danw@MIT.EDU Reply-To: danw@MIT.EDU To: krb5-bugs@MIT.EDU Cc: nathanw@MIT.EDU Subject: login.krb5 willfully eits tty window size X-Send-Pr-Version: 3.99 >Number: 697 >Category: krb5-appl >Synopsis: login.krb5 willfully eits tty window size >Confidential: no >Severity: serious >Priority: medium >Responsible: krb5-unassigned >State: open >Class: sw-bug >Submitter-Id: unknown >Arrival-Date: Sun Feb 28 14:54:01 EST 1999 >Last-Modified: >Originator: Dan Winship >Organization: Athena >Release: 1.0 >Environment: System: IRIX antharia 6.3 12161207 IP32 >Description: login.c contains this dubious fragment: if (!hflag && !rflag && !kflag && !Kflag && !eflag) { /* XXX */ static struct winsize win = { 0, 0, 0, 0 }; (void)ioctl(0, TIOCSWINSZ, (char *)&win); } which has no apparent purpose other than to confuse the tty driver about the size of the screen. In particular, if you have login.krb5 as the getty-invoked login (as on an Athena machine) and are running NetBSD with the new wscons code, you'll lose in a variety of obnoxious ways until you run stty or resize to fix your tty settings. This code (including the /* XXX */) seems to have come originally from the 4.3BSD login source. It's not there in the 4.4BSD source. >How-To-Repeat: >Fix: I nuked that code and everything seems to work fine... >Audit-Trail: >Unformatted: