summaryrefslogtreecommitdiff
path: root/batch.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2004-07-24 16:51:16 +0000
committerWayne Davison <wayned@samba.org>2004-07-24 16:51:16 +0000
commit6a48e792c1c5d82c62498502e3f98f67acc716f0 (patch)
treeaa4935c1151473c57b010bea97307e60b1815b47 /batch.c
parent9459290ae798f52b34c569045af8b8655c31308e (diff)
downloadrsync-6a48e792c1c5d82c62498502e3f98f67acc716f0.tar.gz
Made the new option-twiddling message only output when verbose.
Diffstat (limited to 'batch.c')
-rw-r--r--batch.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/batch.c b/batch.c
index 4c91f82f..bd86ab5a 100644
--- a/batch.c
+++ b/batch.c
@@ -64,9 +64,11 @@ void read_stream_flags(int fd)
for (i = 0, flags = read_int(fd); flag_ptr[i]; i++) {
int set = flags & (1 << i) ? 1 : 0;
if (*flag_ptr[i] != set) {
- rprintf(FINFO,
- "%sing the %s option to match the batchfile.\n",
- set ? "Sett" : "Clear", flag_name[i]);
+ if (verbose) {
+ rprintf(FINFO,
+ "%sing the %s option to match the batchfile.\n",
+ set ? "Sett" : "Clear", flag_name[i]);
+ }
*flag_ptr[i] = set;
}
}