temp files must be opened through do_open so that binary modes is used
on cygwin.  (Chris Boucher)
This commit is contained in:
Martin Pool committed 2002-01-14 00:16:51 +00:00
1 parent 154f9a3aca
commit 25f2cb3d6b
1 file changed
+1 -1
+1 -1
View File
@@ -132,7 +132,7 @@ int do_mkstemp(char *template, mode_t perms)
}
#else
if (!mktemp(template)) return -1;
return open(template, O_RDWR|O_EXCL|O_CREAT, perms);
return do_open(template, O_RDWR|O_EXCL|O_CREAT, perms);
#endif
}