Subject: Re: bin/30295
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: Hubert Feyrer <hubert@feyrer.de>
List: netbsd-bugs
Date: 05/30/2005 08:52:01
The following reply was made to PR bin/30295; it has been noted by GNATS.

From: Hubert Feyrer <hubert@feyrer.de>
To: gnats-bugs@netbsd.org
Cc: wiz@netbsd.org, christos@netbsd.org
Subject: Re: bin/30295
Date: Mon, 30 May 2005 10:50:53 +0200 (CEST)

   This message is in MIME format.  The first part should be readable text,
   while the remaining parts are likely unreadable without MIME-aware tools.
 
 ---559023410-471396894-1117443053=:2054
 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: QUOTED-PRINTABLE
 
 
 Thorsten Glaser (from MirBSD/MirOS) pointed me at these URLs:
 
 http://article.gmane.org/gmane.os.miros.cvs/6230
 http://article.gmane.org/gmane.os.miros.cvs/6231
 
 
 Aparently he did a bit of tweaking to my patch, here's his diff (for both=
 =20
 changes):
 
 Index: src/libexec/getty/main.c
 (RCSID Kram gek=FCrzt)
 diff -u src/libexec/getty/main.c:1.1.1.1 src/libexec/getty/main.c:1.3
 --- src/libexec/getty/main.c:1.1.1.1=09Sat Feb  5 17:26:19 2005
 +++ src/libexec/getty/main.c=09Mon May 30 07:29:32 2005
 @@ -405,15 +404,10 @@
 
   =09=09if (c =3D=3D EOT)
   =09=09=09exit(1);
 -=09=09if (c =3D=3D '\r' || c =3D=3D '\n' || np >=3D name + sizeof name -1)=
  {
 +=09=09if (c =3D=3D '\r' || c =3D=3D '\n') {
   =09=09=09putf("\r\n");
   =09=09=09break;
 -=09=09}
 -=09=09if (islower(c))
 -=09=09=09lower =3D 1;
 -=09=09else if (isupper(c))
 -=09=09=09upper =3D 1;
 -=09=09else if (c =3D=3D ERASE || c =3D=3D '#' || c =3D=3D '\b') {
 +=09=09} else if (c =3D=3D ERASE || c =3D=3D '#' || c =3D=3D '\b') {
   =09=09=09if (np > name) {
   =09=09=09=09np--;
   =09=09=09=09if (cfgetospeed(&tmode) >=3D 1200)
 @@ -433,7 +427,17 @@
   =09=09=09prompt();
   =09=09=09np =3D name;
   =09=09=09continue;
 -=09=09} else if (isdigit(c))
 +=09=09}
 +=09=09if (np >=3D name + sizeof name - 1) {
 +=09=09=09putf("\a\b \b");
 +=09=09=09np--;
 +=09=09=09continue;
 +=09=09}
 +=09=09if (islower(c))
 +=09=09=09lower =3D 1;
 +=09=09else if (isupper(c))
 +=09=09=09upper =3D 1;
 +=09=09else if (isdigit(c))
   =09=09=09digit++;
   =09=09if (IG && (c <=3D ' ' || c > 0176))
   =09=09=09continue;
 
 
   - Hubert
 
 --=20
 Genervt von Viren und von Viren versandten Spam-Mails?  -> www.NetBSD.de
 Fed up from viruses & virus-originated spam mail?       -> www.NetBSD.org
 ---559023410-471396894-1117443053=:2054--