apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r1791029 - /apr/apr/trunk/file_io/unix/copy.c
Date Tue, 11 Apr 2017 21:20:14 GMT
Author: niq
Date: Tue Apr 11 21:20:14 2017
New Revision: 1791029

URL: http://svn.apache.org/viewvc?rev=1791029&view=rev
Log:
Set perms correctly on file copy where destination exists

Modified:
    apr/apr/trunk/file_io/unix/copy.c

Modified: apr/apr/trunk/file_io/unix/copy.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/file_io/unix/copy.c?rev=1791029&r1=1791028&r2=1791029&view=diff
==============================================================================
--- apr/apr/trunk/file_io/unix/copy.c (original)
+++ apr/apr/trunk/file_io/unix/copy.c Tue Apr 11 21:20:14 2017
@@ -41,6 +41,7 @@ static apr_status_t apr_file_transfer_co
             return status;
         }
         perms = finfo.protection;
+        apr_file_perms_set(to_path, perms);  /* ignore any failure */
     }
     else
         perms = to_perms;



Mime
View raw message