NetBSD Problem Report #49291

From www@NetBSD.org  Sat Oct 18 12:26:38 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 38E7FA669D
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 18 Oct 2014 12:26:38 +0000 (UTC)
Message-Id: <20141018122636.EEF4CA669E@mollari.NetBSD.org>
Date: Sat, 18 Oct 2014 12:26:36 +0000 (UTC)
From: henning.petersen@t-online.de
Reply-To: henning.petersen@t-online.de
To: gnats-bugs@NetBSD.org
Subject: Problem with half-line feeds in input stream.
X-Send-Pr-Version: www-1.0

>Number:         49291
>Category:       bin
>Synopsis:       Problem with half-line feeds in input stream.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 18 12:30:00 +0000 2014
>Last-Modified:  Sat Oct 18 15:00:00 +0000 2014
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
Call the col(1) utility with the -f option, permitting forward
half-line feeds in the output stream, and the input stream actually
contains half-line feeds, you end up with corrupted
output.
From OpenBSD.
>How-To-Repeat:

>Fix:
diff -u -p -r1.17 col.c
--- usr.bin/col/col.c	31 Aug 2011 16:24:57 -0000	1.17
+++ usr.bin/col/col.c	18 Oct 2014 11:55:08 -0000
@@ -368,7 +368,7 @@ flush_blanks(void)
 		PUTC('\n');
 	if (half) {
 		PUTC('\033');
-		PUTC('9');
+		PUTC('\011');
 		if (!nb)
 			PUTC('\r');
 	}

>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49291 CVS commit: src/usr.bin/col
Date: Sat, 18 Oct 2014 10:56:14 -0400

 Module Name:	src
 Committed By:	christos
 Date:		Sat Oct 18 14:56:14 UTC 2014

 Modified Files:
 	src/usr.bin/col: col.c

 Log Message:
 PR/49291: Henning Petersen: Problem with half-line feeds in input stream.


 To generate a diff of this commit:
 cvs rdiff -u -r1.17 -r1.18 src/usr.bin/col/col.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.