summaryrefslogtreecommitdiff
path: root/source/files.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/files.c')
-rw-r--r--source/files.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/files.c b/source/files.c
index 3af6d1d..5ceca91 100644
--- a/source/files.c
+++ b/source/files.c
@@ -591,7 +591,8 @@ static inline FILE *fopen_hack( const char *path, const char *mode ) {
}
return _fdopen( fd, "wb" );
#else
- int fd = open( path, O_WRONLY | O_CREAT | O_EXCL );
+ int fd = open( path, O_WRONLY | O_CREAT | O_EXCL,
+ S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH );
if( fd == -1 ) {
return NULL;
}