diff options
| author | Wayne Davison <wayned@samba.org> | 2006-10-24 00:36:42 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@samba.org> | 2006-10-24 00:36:42 +0000 |
| commit | 9ce7fc3887570316c2bd33245b8422ca1d2ee96c (patch) | |
| tree | a5f1f435c6fd63758a28ac1aabe78f1537df41ee /clientserver.c | |
| parent | dc1f7b9ea369f6490c21e5ec69fd80613e17e987 (diff) | |
| download | android_external_rsync-9ce7fc3887570316c2bd33245b8422ca1d2ee96c.tar.gz android_external_rsync-9ce7fc3887570316c2bd33245b8422ca1d2ee96c.tar.bz2 android_external_rsync-9ce7fc3887570316c2bd33245b8422ca1d2ee96c.zip | |
Obey the new --no-motd option.
Diffstat (limited to 'clientserver.c')
| -rw-r--r-- | clientserver.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clientserver.c b/clientserver.c index 5e8ae526..1cb6a09e 100644 --- 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; |
