delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/07/23/17:23:15

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Eric Blake <ebb9 AT byu DOT net>
Subject: Re: 1.5.24: data corruption problem with popen and gzip on a text mounted filesystem
Date: Mon, 23 Jul 2007 21:22:39 +0000 (UTC)
Lines: 21
Message-ID: <loom.20070723T231415-330@post.gmane.org>
References: <46A4BC14 DOT 1050603 AT merl DOT com> <46A4ED4A DOT 9060303 AT merl DOT com> <loom DOT 20070723T215438-835 AT post DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Eric Blake <ebb9 <at> byu.net> writes:

> But I thought at one point I had patched dd to 
> default to binary unless you used oflag=text; I'll have to investigate.

Shoot.  The dd logic when [io]flag= omits both 'binary' or 'text' in 6.9-3 is:

[io]f= unspecified - no change to existing mode of std{in,out}
if= specified - default stdin to binary
of= specified - use mount point for stdout

There was a logic bug in my cygwin-specific patch for of= when I ported it from 
5.9x to 6.0 - in the process of accomodating upstream changes in the same 
section of the file, I accidentally swapped the order of some my lines, and the 
code that was supposed to default of= to binary became dead code.  Look for 
coreutils 6.9-4 coming soon to a mirror near you, with dd once again defaulting 
to full binary operation.

-- 
Eric Blake



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019