diff options
author | niq <niq@13f79535-47bb-0310-9956-ffa450edef68> | 2017-04-11 21:20:14 +0000 |
---|---|---|
committer | niq <niq@13f79535-47bb-0310-9956-ffa450edef68> | 2017-04-11 21:20:14 +0000 |
commit | 0414e593f3527012540dfdcd6a7df70d83444298 (patch) | |
tree | fad7b4fbc259062c6f6342290755f4e50f3a3c04 /file_io | |
parent | 8c58c0f4256e8c9e7652bb598d78698993d8925e (diff) | |
download | libapr-0414e593f3527012540dfdcd6a7df70d83444298.tar.gz |
Set perms correctly on file copy where destination exists
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1791029 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r-- | file_io/unix/copy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/file_io/unix/copy.c b/file_io/unix/copy.c index 91e4f5508..bf844aa46 100644 --- a/file_io/unix/copy.c +++ b/file_io/unix/copy.c @@ -41,6 +41,7 @@ static apr_status_t apr_file_transfer_contents(const char *from_path, return status; } perms = finfo.protection; + apr_file_perms_set(to_path, perms); /* ignore any failure */ } else perms = to_perms; |