fix the problem of --timeout waiting for twice the specified time.
[rsync/rsync.git] / main.c
diff --git a/main.c b/main.c
index ed9dd17..3e39a85 100644 (file)
--- a/main.c
+++ b/main.c
@@ -202,7 +202,8 @@ static char *get_local_name(struct file_list *flist,char *name)
                rprintf(FERROR,"mkdir %s : %s (1)\n",name,strerror(errno));
                exit_cleanup(1);
        } else {
-               rprintf(FINFO,"created directory %s\n",name);
+               if (verbose > 0)
+                       rprintf(FINFO,"created directory %s\n",name);
        }
 
        if (!push_dir(name, 0)) {
@@ -304,6 +305,8 @@ static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name)
 
        set_nonblocking(f_out);
 
+       io_start_buffering(f_out);
+
        generate_files(f_out,flist,local_name,recv_pipe[0]);
 
        io_flush();