summaryrefslogtreecommitdiff
path: root/clientserver.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2004-02-04 07:32:12 +0000
committerWayne Davison <wayned@samba.org>2004-02-04 07:32:12 +0000
commit33e9d10d2a69a625be4746a166f3fe319b05b757 (patch)
treefa0d96ff3096327554abc207c608f7fe2f79821c /clientserver.c
parent46f7dc3bf6614811b7e64e462a23e2aa9ac93992 (diff)
downloadrsync-33e9d10d2a69a625be4746a166f3fe319b05b757.tar.gz
Use the new lp_max_verbosity() value to limit the server's "verbose"
value.
Diffstat (limited to 'clientserver.c')
-rw-r--r--clientserver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clientserver.c b/clientserver.c
index a2bbfe87..1b391ec9 100644
--- a/clientserver.c
+++ b/clientserver.c
@@ -457,7 +457,8 @@ static int rsync_module(int f_in, int f_out, int i)
#ifndef DEBUG
/* don't allow the logs to be flooded too fast */
- if (verbose > 1) verbose = 1;
+ if (verbose > lp_max_verbosity())
+ verbose = lp_max_verbosity();
#endif
if (protocol_version < 23) {