X-Spam-Check-By: sourceware.org Message-ID: <46A64F0F.20706@byu.net> Date: Tue, 24 Jul 2007 13:12:15 -0600 From: Eric Blake User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.5) Gecko/20070716 Thunderbird/2.0.0.5 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: cygwin AT cygwin DOT com, hsw AT hodain DOT net Subject: Re: 1.5.24: incorrect default behavior of dd in popen context on text-mounted filesystem References: <200707241548 DOT l6OFmXAE008571 AT linode DOT hodain DOT net> In-Reply-To: <200707241548.l6OFmXAE008571@linode.hodain.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Hugh Secker-Walker on 7/24/2007 9:48 AM: > Firstly, a thank you to Eric Blake for his quick response to the dd > problem we uncovered yesterday. As of coreutils 6.9-4, dd honors the > oflag=binary option in the popen() context in which I've been having > trouble. Before you thank me too much, remember that oflag=binary already worked even in coreutils 6.9-3; it was the absence of any oflag= that was incorrectly obeying mount points instead of defaulting to binary. > FILE * const out = popen("gzip | dd oflag=binary > popenbug.out.gz", "w"); Why not also thank cgf, who uploaded a fixed gzip yesterday? Because of his fix, this should now work: popen("gzip > popenbug.out.gz", "w") > However, in the discussion and the updated coreutils announcement > http://cygwin.com/ml/cygwin/2007-07/msg00610.html > http://cygwin.com/ml/cygwin/2007-07/msg00617.html Did you not read my statement that: [io]f= unspecified - no change to existing mode of std{in,out} I did not change that behavior, nor did I claim to change it in 6.9-4. I am still open to the idea of changing it. For 6.9-4, I only changed the behavior for when of= but not oflag= was specified. - -- Don't work too hard, make some time for fun as well! Eric Blake ebb9 AT byu DOT net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGpk8O84KuGfSFAYARAhmXAJ0cT5tSsSBRN75k3O+tBeKhcW6YCwCg2a5Y ohzcbe+hm6dMlh/v5m5Gld4= =C5o9 -----END PGP SIGNATURE----- -- 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/