X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Eric Blake <ebb9@byu.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.1050603@merl.com> <46A4ED4A.9060303@merl.com> <loom.20070723T215438-835@post.gmane.org>
Mime-Version:  1.0
Content-Type:  text/plain; charset=us-ascii
Content-Transfer-Encoding:  7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/

