From nobody@FreeBSD.org  Thu May 19 11:17:39 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1ED7A16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 19 May 2005 11:17:39 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id F046043D5A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 19 May 2005 11:17:38 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j4JBHcYu030409
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 19 May 2005 11:17:38 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j4JBHcpp030408;
	Thu, 19 May 2005 11:17:38 GMT
	(envelope-from nobody)
Message-Id: <200505191117.j4JBHcpp030408@www.freebsd.org>
Date: Thu, 19 May 2005 11:17:38 GMT
From: Arseny Nasokin <tarc@tarc.po.cs.msu.su>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Stty prints wrong flags value
X-Send-Pr-Version: www-2.3

>Number:         81256
>Category:       bin
>Synopsis:       [patch] stty prints wrong flags value
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 19 11:20:07 GMT 2005
>Closed-Date:    Thu May 26 09:43:54 GMT 2005
>Last-Modified:  Thu May 26 09:43:54 GMT 2005
>Originator:     Arseny Nasokin
>Release:        6.0-CURRENT
>Organization:
CMC MSU
>Environment:
FreeBSD 6.0-CURRENT #0: Tue May 17 21:06:53 MSD 2005     toor@tarc.po.cs.msu.su:/mnt/usr/obj/usr/src/sys/TarcCurrent  i386

$FreeBSD: src/bin/stty/print.c,v 1.19 2004/04/06 20:06:53 markm Exp $
>Description:
Stty output flags (onocr) and (onlret) same as oxtabs
>How-To-Repeat:
see any stty output, change these flags and see stty output again
>Fix:
--- print.c.orig        Thu May 19 15:16:33 2005
+++ print.c     Fri May 13 17:09:29 2005
@@ -142,8 +142,8 @@
        put("-onlcr", ONLCR, 1);
        put("-ocrnl", OCRNL, 0);
        put("-oxtabs", OXTABS, 1);
-       put("-onocr", OXTABS, 0);
-       put("-onlret", OXTABS, 0);
+       put("-onocr", ONOCR, 0);
+       put("-onlret", ONLRET, 0);
 
        /* control flags (hardware state) */
        tmp = tp->c_cflag;

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: ache 
State-Changed-When: Thu May 26 06:58:36 GMT 2005 
State-Changed-Why:  
Fix committed into -current 

http://www.freebsd.org/cgi/query-pr.cgi?pr=81256 
State-Changed-From-To: patched->closed 
State-Changed-By: ache 
State-Changed-When: Thu May 26 09:43:31 GMT 2005 
State-Changed-Why:  
Committed into -stable 

http://www.freebsd.org/cgi/query-pr.cgi?pr=81256 
>Unformatted:
