Eric Blake <[EMAIL PROTECTED]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On non-POSIX platforms like cygwin, where text mode can be distinct from
> binary mode, creat() will create a text-mode file. But in tar, this is
> the wrong thing to do, since text mode corrupts the binary archive.
> Should we replace all uses of "creat (name, mode)" (such as in
> creat-safer.c) with "open (name, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY,
> mode)", with O_BINARY properly defined to 0 on POSIX systems? This would
> make no difference in semantics to POSIX platforms, only where binary is
> distinct from text.
star does not use creat() and I believe application should not use creat()
if a three parameter open() is available.
Thank you for the hint!
Jörg
--
EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
[EMAIL PROTECTED] (uni)
[EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
Bug-tar mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-tar