X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/4b957c22381cf1848ff6a5e59249bb71ba79e9fa..2f03f956f425f03335005ba743f19b6ed3454248:/util.c diff --git a/util.c b/util.c index bfa35f18..cc626d79 100644 --- a/util.c +++ b/util.c @@ -291,7 +291,7 @@ int copy_file(char *source, char *dest, mode_t mode) } ofd = do_open(dest, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL, mode); - if (ofd < 0) { + if (ofd == -1) { rprintf(FERROR,"open %s: %s\n", dest,strerror(errno)); close(ifd);