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
I think I might havefinally fixed the rsync hanging bug. It was caused
[rsync/rsync.git]
/
util.c
diff --git
a/util.c
b/util.c
index
bfa35f1
..
cc626d7
100644
(file)
--- 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);