Diff of /apr/binary-copy.patch [000000] .. [dd3271]  Maximize  Restore

  Switch to side-by-side view

--- a
+++ b/apr/binary-copy.patch
@@ -0,0 +1,31 @@
+
+
+From: David Rothenberger <d.rothenberger@entomo.com>
+
+
+---
+ file_io/unix/copy.c |    4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/file_io/unix/copy.c b/file_io/unix/copy.c
+index df3a49c..aa2836f 100644
+--- a/file_io/unix/copy.c
++++ b/file_io/unix/copy.c
+@@ -29,7 +29,7 @@ static apr_status_t apr_file_transfer_contents(const char *from_path,
+     apr_fileperms_t perms;
+ 
+     /* Open source file. */
+-    status = apr_file_open(&s, from_path, APR_FOPEN_READ, APR_OS_DEFAULT, pool);
++    status = apr_file_open(&s, from_path, APR_FOPEN_READ | APR_FOPEN_BINARY, APR_OS_DEFAULT, pool);
+     if (status)
+         return status;
+ 
+@@ -46,7 +46,7 @@ static apr_status_t apr_file_transfer_contents(const char *from_path,
+         perms = to_perms;
+ 
+     /* Open dest file. */
+-    status = apr_file_open(&d, to_path, flags, perms, pool);
++    status = apr_file_open(&d, to_path, flags | APR_FOPEN_BINARY, perms, pool);
+     if (status) {
+         apr_file_close(s);  /* toss any error */
+         return status;

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks