aboutsummaryrefslogtreecommitdiff
path: root/jim-aio.c
diff options
context:
space:
mode:
Diffstat (limited to 'jim-aio.c')
-rw-r--r--jim-aio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/jim-aio.c b/jim-aio.c
index 1ac3b56..0d11648 100644
--- a/jim-aio.c
+++ b/jim-aio.c
@@ -1800,7 +1800,12 @@ int Jim_MakeTempFile(Jim_Interp *interp, const char *template)
filenameObj = Jim_NewStringObj(interp, template, -1);
}
+#if defined(S_IRWXG) && defined(S_IRWXO)
mask = umask(S_IXUSR | S_IRWXG | S_IRWXO);
+#else
+ /* MinGW does not have group/owner permissions */
+ mask = umask(S_IXUSR);
+#endif
/* Update the template name directly with the filename */
fd = mkstemp(filenameObj->bytes);