Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make sure secrets file is not other-accessible, and owned by root if the
[rsync/rsync.git]
/
syscall.c
diff --git
a/syscall.c
b/syscall.c
index
a8470e1
..
558fe98
100644
(file)
--- a/
syscall.c
+++ b/
syscall.c
@@
-76,6
+76,10
@@
int do_rmdir(char *pathname)
int do_open(char *pathname, int flags, mode_t mode)
{
if (dry_run) return -1;
int do_open(char *pathname, int flags, mode_t mode)
{
if (dry_run) return -1;
+#ifdef O_BINARY
+ /* for Windows */
+ flags |= O_BINARY;
+#endif
CHECK_RO
return open(pathname, flags, mode);
}
CHECK_RO
return open(pathname, flags, mode);
}
@@
-149,7
+153,7
@@
OFF_T do_lseek(int fd, OFF_T offset, int whence)
#endif
}
#endif
}
-#if
HAV
E_MMAP
+#if
def US
E_MMAP
void *do_mmap(void *start, int len, int prot, int flags, int fd, OFF_T offset)
{
#if HAVE_OFF64_T
void *do_mmap(void *start, int len, int prot, int flags, int fd, OFF_T offset)
{
#if HAVE_OFF64_T