diff options
author | Andrew Tridgell <tridge@samba.org> | 1999-10-25 22:04:09 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1999-10-25 22:04:09 +0000 |
commit | 8c9fd200f9061cbb68b00fd3d58cacdbb46e2d23 (patch) | |
tree | 3e606ba991602256a5ccf7a9ca3cb947ab512c7c /util.c | |
parent | 79f118d859e8f9a618853b8bff675f33f96fc3b8 (diff) | |
download | rsync-8c9fd200f9061cbb68b00fd3d58cacdbb46e2d23.tar.gz |
use do_open() instead of open() in several places to help the WinXX port
and O_BINARY
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -282,7 +282,7 @@ int copy_file(char *source, char *dest, mode_t mode) char buf[1024 * 8]; int len; /* Number of bytes read into `buf'. */ - ifd = open(source, O_RDONLY); + ifd = do_open(source, O_RDONLY, 0); if (ifd == -1) { rprintf(FERROR,"open %s: %s\n", source,strerror(errno)); |