diff options
Diffstat (limited to 'jim-aio.c')
-rw-r--r-- | jim-aio.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |