Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef9d3a1
)
A daemon treats --msgs2stderr as "output only to the log, not the user".
author
Wayne Davison
<wayned@samba.org>
Sun, 1 Nov 2009 21:36:02 +0000
(13:36 -0800)
committer
Wayne Davison
<wayned@samba.org>
Sun, 1 Nov 2009 21:43:29 +0000
(13:43 -0800)
log.c
patch
|
blob
|
blame
|
history
diff --git
a/log.c
b/log.c
index
6fbdfc7
..
4e20c2c
100644
(file)
--- a/
log.c
+++ b/
log.c
@@
-265,10
+265,16
@@
void rwrite(enum logcode code, const char *buf, int len, int is_utf8)
if (len < 0)
exit_cleanup(RERR_MESSAGEIO);
- if (msgs2stderr && code != FLOG)
- goto output_msg;
-
- if (send_msgs_to_gen) {
+ if (msgs2stderr) {
+ if (!am_daemon) {
+ if (code == FLOG)
+ return;
+ goto output_msg;
+ }
+ if (code == FCLIENT)
+ return;
+ code = FLOG;
+ } else if (send_msgs_to_gen) {
assert(!is_utf8);
/* Pass the message to our sibling in native charset. */
send_msg((enum msgcode)code, buf, len, 0);