GNU bug report logs - #6657
mkstemp on cygwin creates binary files

Previous Next

Package: coreutils;

Reported by: Paolo Bonzini <bonzini <at> gnu.org>

Date: Fri, 16 Jul 2010 20:40:02 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paolo Bonzini <bonzini <at> gnu.org>
To: Eric Blake <eblake <at> redhat.com>
Cc: 6657 <at> debbugs.gnu.org, Paul Eggert <eggert <at> CS.UCLA.EDU>
Subject: bug#6657: mkstemp on cygwin creates binary files
Date: Mon, 19 Jul 2010 18:48:24 +0200
On 07/19/2010 06:33 PM, Eric Blake wrote:
> Yuck - that means if /tmp is mounted differently than ., then using
> mkostemp(,0) will force the wrong line endings (converting binary to
> text, or converting text to binary, depending on which direction the
> mismatch is between the mount modes).  If you aren't creating the temp
> file in the same mount point as the target, then you cannot blindly rely
> on automatic mount point file modes to do the right thing.

It's buggy anyway in all released versions of sed.  I'll probably make 
the change---just, not yet.

Paolo




This bug report was last modified 13 years and 315 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.