diff --git a/compat/mingw.c b/compat/mingw.c index 6887968a10..70a8e1f78f 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -79,7 +79,7 @@ int mkstemp (char *__template) char *filename = mktemp(__template); if (filename == NULL) return -1; - return open(filename, O_RDWR | O_CREAT); + return open(filename, O_RDWR | O_CREAT, 0600); } int gettimeofday(struct timeval *tv, void *tz)