summaryrefslogtreecommitdiff
path: root/rsync.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2008-07-20 20:08:08 -0700
committerWayne Davison <wayned@samba.org>2008-07-20 20:08:08 -0700
commiteabc85ef5ecd7ed9892ee3d9562468dbb84cbef5 (patch)
treeb99a79b1cce7d19e9ff497bce78b5718688d36ab /rsync.c
parent5a18b34de343eca4b5537443e9bb207d91524d7e (diff)
downloadrsync-eabc85ef5ecd7ed9892ee3d9562468dbb84cbef5.tar.gz
rsync-eabc85ef5ecd7ed9892ee3d9562468dbb84cbef5.tar.bz2
rsync-eabc85ef5ecd7ed9892ee3d9562468dbb84cbef5.zip
Added a debug-helping option, --msgs2stderr, than should help all
messages to be seen in a situation where rsync is dying (as long as stderr is a viable output method for the remote rsync).
Diffstat (limited to 'rsync.c')
-rw-r--r--rsync.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/rsync.c b/rsync.c
index 734a373d..0e635b03 100644
--- a/rsync.c
+++ b/rsync.c
@@ -45,6 +45,7 @@ extern int gid_ndx;
extern int inc_recurse;
extern int inplace;
extern int flist_eof;
+extern int msgs2stderr;
extern int keep_dirlinks;
extern int make_backups;
extern struct file_list *cur_flist, *first_flist, *dir_flist;
@@ -278,13 +279,15 @@ int read_ndx_and_attrs(int f_in, int *iflag_ptr, uchar *type_ptr,
rprintf(FINFO, "[%s] receiving flist for dir %d\n",
who_am_i(), ndx);
}
- negate_output_levels(); /* turn off all info/debug output */
+ if (!msgs2stderr)
+ negate_output_levels(); /* turn off all info/debug output */
send_msg_int(MSG_FLIST, ndx);
start_flist_forward(f_in);
flist = recv_file_list(f_in);
flist->parent_ndx = ndx;
stop_flist_forward();
- negate_output_levels(); /* restore info/debug output */
+ if (!msgs2stderr)
+ negate_output_levels(); /* restore info/debug output */
}
iflags = protocol_version >= 29 ? read_shortint(f_in)