dovecot-2.0: doveadm log find: Avoid printing "syslog" as log path.

dovecot at dovecot.org dovecot at dovecot.org
Wed Jun 16 20:36:06 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/a05e3bbc4e46
changeset: 11559:a05e3bbc4e46
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jun 16 18:36:02 2010 +0100
description:
doveadm log find: Avoid printing "syslog" as log path.

diffstat:

 src/doveadm/doveadm-log.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r 3e50223d0014 -r a05e3bbc4e46 src/doveadm/doveadm-log.c
--- a/src/doveadm/doveadm-log.c	Wed Jun 16 18:29:45 2010 +0100
+++ b/src/doveadm/doveadm-log.c	Wed Jun 16 18:36:02 2010 +0100
@@ -218,7 +218,9 @@
 	/* first get the paths that we know are used */
 	set = master_service_settings_get(master_service);
 	log_file_path = set->log_path;
-	if (*log_file_path != '\0' && strcmp(log_file_path, "syslog") != 0) {
+	if (strcmp(log_file_path, "syslog") == 0)
+		log_file_path = "";
+	if (*log_file_path != '\0') {
 		cmd_log_find_add(&ctx, log_file_path, LOG_TYPE_WARNING);
 		cmd_log_find_add(&ctx, log_file_path, LOG_TYPE_ERROR);
 		cmd_log_find_add(&ctx, log_file_path, LOG_TYPE_FATAL);


More information about the dovecot-cvs mailing list