Commit 3267d6a9 authored by Wayne Davison's avatar Wayne Davison

Some systems need do_mkstemp() to use setmode() to set O_BINARY.

parent 3ba2c330
......@@ -164,6 +164,9 @@ int do_mkstemp(char *template, mode_t perms)
errno = errno_save;
return -1;
}
#if HAVE_SETMODE && O_BINARY
setmode(fd, O_BINARY);
#endif
return fd;
}
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment