summaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
authorDavid Dykstra <dwd@samba.org>1999-02-09 17:25:35 +0000
committerDavid Dykstra <dwd@samba.org>1999-02-09 17:25:35 +0000
commitb86f0cefa23fff464bb68f53b76523cf8ce26436 (patch)
tree166c8599bf97f9e66be032d48db398816b3cfac1 /log.c
parentc226b7c2fdd6cc4357337514b22c3042195ab091 (diff)
downloadrsync-b86f0cefa23fff464bb68f53b76523cf8ce26436.tar.gz
Add --quiet/-q option. Contributed by Rich Salz salzr@certco.com.
Diffstat (limited to 'log.c')
-rw-r--r--log.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/log.c b/log.c
index 3643df7e..62394090 100644
--- a/log.c
+++ b/log.c
@@ -87,8 +87,11 @@ void log_open(void)
int len;
FILE *f=NULL;
extern int am_daemon;
+ extern int quiet;
/* recursion can happen with certain fatal conditions */
+ if (quiet != 0 && fd == FINFO) return;
+
va_start(ap, format);
len = vslprintf(buf, sizeof(buf), format, ap);
va_end(ap);