[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
binary mode copies
From: |
Eric Blake |
Subject: |
binary mode copies |
Date: |
Tue, 15 Mar 2005 06:50:17 -0700 |
User-agent: |
Mozilla Thunderbird 1.0 (Windows/20041206) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The following patch, first proposed for cygwin, is needed on systems like
cygwin where not copying in binary mode can lead to data corruption. This
affects mv, cp, and install.
2005-03-15 Corinna Vinschen <address@hidden> (tiny change)
* src/copy.c (copy_reg): Copy regular files in binary mode.
- --
Life is short - so eat dessert first!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCNugZ84KuGfSFAYARAgF8AKC/qf+RiEbdtA2OcjFQe+Ub/8x9LQCgoPPi
0Rp+rSy0gzljm0XBW2B9VsQ=
=k8IZ
-----END PGP SIGNATURE-----
--- src/copy.c 11 Mar 2005 09:36:52 -0000 1.176
+++ src/copy.c 15 Mar 2005 13:36:56 -0000
@@ -273,6 +273,7 @@
return_val = false;
goto close_src_desc;
}
+ SET_BINARY2 (source_desc, dest_desc);
/* Determine the optimal buffer size. */
- binary mode copies,
Eric Blake <=