diff --git a/dcapi/local/local_master.c b/dcapi/local/local_master.c index 447798ee6e..bb3a234b89 100644 --- a/dcapi/local/local_master.c +++ b/dcapi/local/local_master.c @@ -451,7 +451,7 @@ static int copy_file(const char *src, const char *dst) g_free(buf); return -1; } - dfd = open(dst, O_WRONLY | O_CREAT | O_TRUNC); + dfd = open(dst, O_WRONLY | O_CREAT | O_TRUNC, 00664); if (dfd == -1) { DC_log(LOG_ERR, "Failed to create %s: %s", dst, strerror(errno));