NetBSD Problem Report #70

From gnats  Thu Jan 13 10:50:29 1994
Received: from bloom-beacon.mit.edu (BLOOM-BEACON.MIT.EDU [18.70.0.232]) by sun-lamp.cs.berkeley.edu (8.6.4/8.6.4) with SMTP id KAA22062 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Thu, 13 Jan 1994 10:44:26 -0800
Message-Id: <199401131837.NAA00455@orchard.medford.ma.us>
Date: Thu, 13 Jan 1994 13:37:32 -0500
From: sommerfeld@orchard.medford.ma.us
Reply-To: sommerfeld@orchard.medford.ma.us
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: stty prints bogus warning if -f option used.
X-Send-Pr-Version: 3.01.6

>Number:         70
>Category:       bin
>Synopsis:       stty prints bogus warning if -f option used.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 13 11:05:08 +0000 1994
>Closed-Date:    Tue Jan 18 10:11:52 +0000 1994
>Last-Modified:  
>Originator:     Bill Sommerfeld
>Release:        -current
>Organization:
	none.
>Environment:
System: NetBSD orchard.medford.ma.us 0.9a ORCHARD#3 i386

>Description:
	"stty -f /dev/tty05 >/dev/tty05" prints the warning:

stdout appears redirected, but stdin is the control descriptor

>How-To-Repeat:
	see above.
>Fix:
	Don't print the message if -f is used.

*** 1.1	1994/01/13 18:33:08
--- 1.2	1994/01/13 18:34:07
***************
*** 99,105 ****
  	if (ioctl(i.fd, TIOCGWINSZ, &i.win) < 0)
  		warn("TIOCGWINSZ: %s\n", strerror(errno));

! 	checkredirect();			/* conversion aid */

  	switch(fmt) {
  	case NOTSET:
--- 99,106 ----
  	if (ioctl(i.fd, TIOCGWINSZ, &i.win) < 0)
  		warn("TIOCGWINSZ: %s\n", strerror(errno));

! 	if (i.fd == STDIN_FILENO)
! 		checkredirect();			/* conversion aid */

  	switch(fmt) {
  	case NOTSET:

>Release-Note:
>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: jtc
State-Changed-When: Tue Jan 18 10:11:52 1994
State-Changed-Why:
I removed the redirection check.  
Stty has been operating on stdin for a long time.  Any scripts that used
the old syntax have long since been updated.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.