From owner-freebsd-bugs Fri Oct 18 16:00:06 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA29007 for bugs-outgoing; Fri, 18 Oct 1996 16:00:06 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA28994; Fri, 18 Oct 1996 16:00:03 -0700 (PDT) Resent-Date: Fri, 18 Oct 1996 16:00:03 -0700 (PDT) Resent-Message-Id: <199610182300.QAA28994@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, luigi@iet.unipi.it Received: from prova.iet.unipi.it (prova1.iet.unipi.it [131.114.9.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id PAA28442 for ; Fri, 18 Oct 1996 15:52:08 -0700 (PDT) Received: (from luigi@localhost) by prova.iet.unipi.it (8.6.12/8.6.12) id AAA00617; Sat, 19 Oct 1996 00:56:08 +0200 Message-Id: <199610182256.AAA00617@prova.iet.unipi.it> Date: Sat, 19 Oct 1996 00:56:08 +0200 From: Luigi Rizzo Reply-To: luigi@iet.unipi.it To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: misc/1838: getttyent() arbitrary 100 char limit Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 1838 >Category: misc >Synopsis: getttyent() arbitrary 100 char limit >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 18 16:00:02 PDT 1996 >Last-Modified: >Originator: Luigi Rizzo >Organization: >Release: any ? >Environment: >Description: getttyent() has a limit of 100 char for input lines. This causes problems when there are long lines in /etc/ttys, e.g. when using mgetty with chat strings supplied on the command line. Worst thing is that the line is dropped silently. >How-To-Repeat: use a line > 100 chars in /etc/ttys >Fix: in libc/gen/getttyent.c, line 66, change the definition of MAXLINELENGTH to a larger value, e.g. 256 or 512. Also, it would be probably worth mentioning the existence of this limitation in /etc/ttys, e.g. add the following: # IMPORTANT: lines must be shorter than XXX chars Luigi ==================================================================== Luigi Rizzo Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it Universita' di Pisa tel: +39-50-568533 via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 http://www.iet.unipi.it/~luigi/ ==================================================================== >Audit-Trail: >Unformatted: