From 512712e2654f8840fd1bcb68ffbed1ea9fc375c5 Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Fri, 6 Aug 2010 13:11:36 +0000 Subject: Supply mandatory mode argument to open(). --- source/files.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/files.c') 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; } -- cgit v1.2.3