revert last commit of mkstemp (remove _O_TEMPORARY flag in open())

SVN revision: 61417
This commit is contained in:
Vincent Torri 2011-07-16 07:14:42 +00:00
parent 9314ca2baf
commit dc12586bdd
2 changed files with 1 additions and 7 deletions

View File

@ -11,12 +11,6 @@
add inet_pton() function. Implementation from curl library.
See AUTHORS.
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_TEMPORARY | _O_EXCL, _S_IREAD | _S_IWRITE);
fd = _open(__template, _O_RDWR | _O_BINARY | _O_CREAT | _O_EXCL, _S_IREAD | _S_IWRITE);
#else /* ! __MINGW32CE__ */
{
FILE *f;