git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc1f7b9
)
Obey the new --no-motd option.
author
Wayne Davison
<wayned@samba.org>
Tue, 24 Oct 2006 00:36:42 +0000
(
00:36
+0000)
committer
Wayne Davison
<wayned@samba.org>
Tue, 24 Oct 2006 00:36:42 +0000
(
00:36
+0000)
clientserver.c
patch
|
blob
|
history
diff --git
a/clientserver.c
b/clientserver.c
index 5e8ae5263d30eb0a9b0e0b72d5e4dbb5be0d0aa9..1cb6a09e6d14dffae190d0d0839ea710fa3dc449 100644
(file)
--- a/
clientserver.c
+++ b/
clientserver.c
@@
-24,6
+24,7
@@
extern int verbose;
extern int quiet;
+extern int output_motd;
extern int list_only;
extern int am_sender;
extern int am_server;
@@
-205,7
+206,10
@@
int start_inband_exchange(char *user, char *path, int f_in, int f_out,
return -1;
}
- rprintf(FINFO, "%s\n", line);
+ /* This might be a MOTD line or a module listing, but there is
+ * no way to differentiate it. The manpage mentions this. */
+ if (output_motd)
+ rprintf(FINFO, "%s\n", line);
}
kluge_around_eof = 0;