Mercurial > dovecot > original-hg > dovecot-1.2
changeset 7351:6115fe69094c HEAD
Fatals/panics logged by master weren't logged properly.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 05 Mar 2008 02:17:52 +0200 |
parents | 51c72fdaadfd |
children | 4f63124e756e |
files | src/master/main.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ { 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); }