diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-07-20 05:36:25 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-07-20 05:36:25 +0000 |
commit | c46ded46212c2ea55e43ec661b5a724718a63ec2 (patch) | |
tree | e3fd43e0ae833ea6d1981c8962282f9d30f2f5ad /util.c | |
parent | 8cd9fd4e8c293047162784ae08c12be3636b9353 (diff) | |
download | rsync-c46ded46212c2ea55e43ec661b5a724718a63ec2.tar.gz |
I think I might havefinally fixed the rsync hanging bug. It was caused
by a read during an io_flush() triggered during a readfd(). A simple
logic bug in the io code :(
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |