Evil: evil_stdlib.c

fix mkstemp() which didn't remove the file when the last
file descriptor was closed

SVN revision: 58274
This commit is contained in:
Vincent Torri 2011-04-02 12:29:32 +00:00
parent f97e7c8d40
commit 33eacca871
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2011-04-20 Vincent Torri <doursse at users dot sf dot net>
* evil_stdlib.c:
fix mkstemp() which didn't remove the file when the last
file descriptor was closed
2011-02-27 Vincent Torri <doursse at users dot sf dot net>
* configure.ac:

View File

@ -316,7 +316,7 @@ mkstemp(char *__template)
v /= 62;
#ifndef __MINGW32CE__
fd = _open(__template, _O_RDWR | _O_BINARY | _O_CREAT | _O_EXCL, _S_IREAD | _S_IWRITE);
fd = _open(__template, _O_RDWR | _O_BINARY | _O_CREAT | _O_TEMPORARY | _O_EXCL, _S_IREAD | _S_IWRITE);
#else /* ! __MINGW32CE__ */
{
FILE *f;