summaryrefslogtreecommitdiff
path: root/file_io/unix/copy.c
diff options
context:
space:
mode:
Diffstat (limited to 'file_io/unix/copy.c')
-rw-r--r--file_io/unix/copy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/file_io/unix/copy.c b/file_io/unix/copy.c
index df3a49c8209ec..7f74d30c16b84 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;