[dovecot-cvs] dovecot/src/deliver deliver.c,1.44,1.45

tss at dovecot.org tss at dovecot.org
Sun Jan 21 15:50:16 UTC 2007


Update of /var/lib/cvs/dovecot/src/deliver
In directory talvi:/tmp/cvs-serv8817

Modified Files:
	deliver.c 
Log Message:
If log_timestamp isn't uncommented in dovecot.conf, use the default.



Index: deliver.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/deliver/deliver.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- deliver.c	19 Jan 2007 20:26:45 -0000	1.44
+++ deliver.c	21 Jan 2007 15:50:13 -0000	1.45
@@ -367,7 +367,7 @@
 
 static void open_logfile(const char *username)
 {
-	const char *prefix, *log_path;
+	const char *prefix, *log_path, *stamp;
 
 	prefix = t_strdup_printf("deliver(%s)", username);
 	log_path = getenv("LOG_PATH");
@@ -384,7 +384,10 @@
 	if (log_path != NULL && *log_path != '\0')
 		i_set_info_file(log_path);
 
-	i_set_failure_timestamp_format(getenv("LOG_TIMESTAMP"));
+	stamp = getenv("LOG_TIMESTAMP");
+	if (stamp == NULL)
+		stamp = DEFAULT_FAILURE_STAMP_FORMAT;
+	i_set_failure_timestamp_format(stamp);
 }
 
 static void print_help(void)



More information about the dovecot-cvs mailing list