X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/79452d46930e5e3ec5b14d4c8380ff1e0329b9a8..b17bc22bb3fc0c64092f31a31acbe21947c775ab:/util.c diff --git a/util.c b/util.c index 2d1989d4..947caa7c 100644 --- a/util.c +++ b/util.c @@ -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));