dovecot-1.1: Fatals/panics logged by master weren't logged prope...

dovecot at dovecot.org dovecot at dovecot.org
Wed Mar 5 02:17:55 EET 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/6115fe69094c
changeset: 7351:6115fe69094c
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Mar 05 02:17:52 2008 +0200
description:
Fatals/panics logged by master weren't logged properly.

diffstat:

1 file changed, 3 insertions(+), 1 deletion(-)
src/master/main.c |    4 +++-

diffs (20 lines):

diff -r 51c72fdaadfd -r 6115fe69094c src/master/main.c
--- a/src/master/main.c	Wed Mar 05 02:17:33 2008 +0200
+++ b/src/master/main.c	Wed Mar 05 02:17:52 2008 +0200
@@ -52,13 +52,15 @@ master_fatal_callback(enum log_type type
 {
 	const struct settings *set = settings_root->defaults;
 	const char *path, *str;
+	va_list args2;
 	int fd;
 
 	/* write the error message to a file */
 	path = t_strconcat(set->base_dir, "/"FATAL_FILENAME, NULL);
 	fd = open(path, O_CREAT | O_TRUNC | O_WRONLY, 0600);
 	if (fd != -1) {
-		str = t_strdup_vprintf(format, args);
+		VA_COPY(args2, args);
+		str = t_strdup_vprintf(format, args2);
 		write_full(fd, str, strlen(str));
 		(void)close(fd);
 	}


More information about the dovecot-cvs mailing list