We now allow verbose messages to be sent when forwarding incremental-recursion
authorWayne Davison <wayned@samba.org>
Fri, 20 Apr 2007 22:40:01 +0000 (22:40 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 20 Apr 2007 22:40:01 +0000 (22:40 +0000)
file-list data from the receiver to the generator.

rsync.c

diff --git a/rsync.c b/rsync.c
index 7e97a930ef823636e6ee38f265917480d4c577f9..676e65880628e8bf60ddf0d3ef5a092061c6e29d 100644 (file)
--- a/rsync.c
+++ b/rsync.c
@@ -98,7 +98,7 @@ int read_ndx_and_attrs(int f_in, int *iflag_ptr, uchar *type_ptr,
        int len, iflags = 0;
        struct file_list *flist;
        uchar fnamecmp_type = FNAMECMP_FNAME;
-       int verbose_save, ndx;
+       int ndx;
 
   read_loop:
        while (1) {
@@ -124,8 +124,6 @@ int read_ndx_and_attrs(int f_in, int *iflag_ptr, uchar *type_ptr,
                                NDX_FLIST_OFFSET - dir_flist->count);
                        exit_cleanup(RERR_PROTOCOL);
                }
-               verbose_save = verbose;
-               verbose = 0; /* TODO allow verbose messages? */
 
                /* Send everything read from f_in to msg_fd_out. */
                send_msg_int(MSG_FLIST, ndx);
@@ -133,8 +131,6 @@ int read_ndx_and_attrs(int f_in, int *iflag_ptr, uchar *type_ptr,
                flist = recv_file_list(f_in);
                flist->parent_ndx = ndx;
                stop_flist_forward();
-
-               verbose = verbose_save;
        }
 
        iflags = protocol_version >= 29 ? read_shortint(f_in)