From owner-freebsd-bugs Sat Jul 21 22:50:13 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CEDF537B408 for ; Sat, 21 Jul 2001 22:50:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f6M5o3g73319; Sat, 21 Jul 2001 22:50:03 -0700 (PDT) (envelope-from gnats) Date: Sat, 21 Jul 2001 22:50:03 -0700 (PDT) Message-Id: <200107220550.f6M5o3g73319@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Mike Barcroft Subject: Re: bin/18181: Getty can fail to observe :de: specification unle Reply-To: Mike Barcroft Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/18181; it has been noted by GNATS. From: Mike Barcroft To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: bin/18181: Getty can fail to observe :de: specification unle Date: Sun, 22 Jul 2001 01:58:01 -0400 Adding to Audit-Trail. On Sun, Jul 22, 2001 at 01:38:17AM -0400, Cyrus Rahman wrote: > On 22-Jul-01 mike@FreeBSD.org wrote: > > Synopsis: Getty can fail to observe :de: specification unless present in > > default > > > > State-Changed-From-To: open->feedback > > State-Changed-By: mike > > State-Changed-When: Sat Jul 21 18:46:47 PDT 2001 > > State-Changed-Why: > > > > Does this problem still occur in newer versions of FreeBSD, > > such as 4.3-RELEASE? > > > > http://www.FreeBSD.org/cgi/query-pr.cgi?pr=18181 > > As I recall, the problem is that the code (in main.c): > > for (;;) { > /* > * if a delay was specified then sleep for that > * number of seconds before writing the initial prompt > */ > if (first_sleep && DE) { > sleep(DE); > /* remove any noise */ > (void)tcflush(STDIN_FILENO, TCIOFLUSH); > } > first_sleep = 0; > > setttymode(tname, 0); > > expects to find the correct delay value in DE. However, this is no longer set > this early in the loop, since the code that would load it with the value > from gettytab: > > gettable(tname, tabent); > setdefaults(); > > has been moved into setttymode(), which isn't run until after the test. > > Although not elegant, I fixed the problem by adding an extra > > gettable(tname, tabent); > setdefaults(); > > at the top of the loop before the first lookup of DE. > > Inspection of the latest copy of getty/main.c indicates that the problem has > not been corrected in 1.28.2.3. > > Cyrus > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message