bin/81256: Stty prints wrong flags value

Arseny Nasokin tarc at tarc.po.cs.msu.su
Thu May 19 11:20:08 GMT 2005


>Number:         81256
>Category:       bin
>Synopsis:       Stty prints wrong flags value
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 19 11:20:07 GMT 2005
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:


More information about the freebsd-bugs mailing list