]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Some systems need do_mkstemp() to use setmode() to set O_BINARY.
authorWayne Davison <wayned@samba.org>
Fri, 1 Oct 2004 02:34:22 +0000 (02:34 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 1 Oct 2004 02:34:22 +0000 (02:34 +0000)
syscall.c

index 1e187662d137d780095e041049f28c703cd008e4..600d91c42e6d7873488d74149388b9a29b8e5101 100644 (file)
--- a/syscall.c
+++ b/syscall.c
@@ -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