summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--legacy/evil/ChangeLog6
-rw-r--r--legacy/evil/src/lib/evil_stdlib.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/legacy/evil/ChangeLog b/legacy/evil/ChangeLog
index 540a8635d9..cea9615013 100644
--- a/legacy/evil/ChangeLog
+++ b/legacy/evil/ChangeLog
@@ -1,3 +1,9 @@
12011-04-20 Vincent Torri <doursse at users dot sf dot net>
2
3 * evil_stdlib.c:
4 fix mkstemp() which didn't remove the file when the last
5 file descriptor was closed
6
12011-02-27 Vincent Torri <doursse at users dot sf dot net> 72011-02-27 Vincent Torri <doursse at users dot sf dot net>
2 8
3 * configure.ac: 9 * configure.ac:
diff --git a/legacy/evil/src/lib/evil_stdlib.c b/legacy/evil/src/lib/evil_stdlib.c
index 492bc63ab6..8034c24cfc 100644
--- a/legacy/evil/src/lib/evil_stdlib.c
+++ b/legacy/evil/src/lib/evil_stdlib.c
@@ -316,7 +316,7 @@ mkstemp(char *__template)
316 v /= 62; 316 v /= 62;
317 317
318#ifndef __MINGW32CE__ 318#ifndef __MINGW32CE__
319 fd = _open(__template, _O_RDWR | _O_BINARY | _O_CREAT | _O_EXCL, _S_IREAD | _S_IWRITE); 319 fd = _open(__template, _O_RDWR | _O_BINARY | _O_CREAT | _O_TEMPORARY | _O_EXCL, _S_IREAD | _S_IWRITE);
320#else /* ! __MINGW32CE__ */ 320#else /* ! __MINGW32CE__ */
321 { 321 {
322 FILE *f; 322 FILE *f;