(copy_reg): Copy regular files in binary mode.
authorJim Meyering <jim@meyering.net>
Tue, 15 Mar 2005 15:39:40 +0000 (15:39 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 15 Mar 2005 15:39:40 +0000 (15:39 +0000)
src/copy.c

index 88df1d4b366b56cd5943d117334d00c50fc8101f..d9f497e9ca9c995cbaf65f5180f54fe91654ea16 100644 (file)
@@ -273,6 +273,7 @@ copy_reg (const char *src_path, const char *dst_path,
       return_val = false;
       goto close_src_desc;
     }
+  SET_BINARY2 (source_desc, dest_desc);
 
   /* Determine the optimal buffer size.  */