You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by ni...@apache.org on 2017/04/11 21:20:34 UTC
svn commit: r1791030 - /apr/apr/branches/1.6.x/file_io/unix/copy.c
Author: niq
Date: Tue Apr 11 21:20:34 2017
New Revision: 1791030
URL: http://svn.apache.org/viewvc?rev=1791030&view=rev
Log:
Set perms correctly on file copy where destination exists
Modified:
apr/apr/branches/1.6.x/file_io/unix/copy.c
Modified: apr/apr/branches/1.6.x/file_io/unix/copy.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.6.x/file_io/unix/copy.c?rev=1791030&r1=1791029&r2=1791030&view=diff
==============================================================================
--- apr/apr/branches/1.6.x/file_io/unix/copy.c (original)
+++ apr/apr/branches/1.6.x/file_io/unix/copy.c Tue Apr 11 21:20:34 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;