Git fork

Merge branch 'rs/mingw-tighten-mkstemp'

mkstemp() emulation on Windows has been improved.

* rs/mingw-tighten-mkstemp:
mingw: avoid mktemp() in mkstemp() implementation

+1 -4
+1 -4
compat/mingw.c
··· 1059 1059 1060 1060 int mkstemp(char *template) 1061 1061 { 1062 - char *filename = mktemp(template); 1063 - if (!filename) 1064 - return -1; 1065 - return open(filename, O_RDWR | O_CREAT, 0600); 1062 + return git_mkstemp_mode(template, 0600); 1066 1063 } 1067 1064 1068 1065 int gettimeofday(struct timeval *tv, void *tz)