-----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  <[EMAIL PROTECTED]>  (tiny change)

        * src/copy.c (copy_reg): Copy regular files in binary mode.

- --
Life is short - so eat dessert first!

Eric Blake             [EMAIL PROTECTED]
-----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.  */
 
_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to