From 25f2cb3d6b7537149b5645ed13cdd9785fa225ab Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Mon, 14 Jan 2002 00:16:51 +0000 Subject: [PATCH] Fix for temp files must be opened through do_open so that binary modes is used on cygwin. (Chris Boucher) --- syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syscall.c b/syscall.c index a56eb793..dbac7dc9 100644 --- a/syscall.c +++ b/syscall.c @@ -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 } -- 2.34.1