dovecot-1.1: deliver: If log path begins with ~/, expand it to $...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Jan 9 21:03:52 EET 2009
details: http://hg.dovecot.org/dovecot-1.1/rev/e922f0b6436e
changeset: 8082:e922f0b6436e
user: Timo Sirainen <tss at iki.fi>
date: Fri Jan 09 14:03:05 2009 -0500
description:
deliver: If log path begins with ~/, expand it to $HOME directory.
This doesn't really work if using -d parameter, since the expansion is done
before the userdb lookup.
diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
src/deliver/deliver.c | 4 ++--
diffs (21 lines):
diff -r 3c2f9e53eb5c -r e922f0b6436e src/deliver/deliver.c
--- a/src/deliver/deliver.c Fri Jan 09 13:57:30 2009 -0500
+++ b/src/deliver/deliver.c Fri Jan 09 14:03:05 2009 -0500
@@ -682,7 +682,7 @@ static void open_logfile(const char *use
const char *prefix, *log_path, *stamp;
prefix = t_strdup_printf("deliver(%s)", username);
- log_path = getenv("LOG_PATH");
+ log_path = home_expand(getenv("LOG_PATH"));
if (log_path == NULL || *log_path == '\0') {
const char *env = getenv("SYSLOG_FACILITY");
int facility;
@@ -695,7 +695,7 @@ static void open_logfile(const char *use
i_set_failure_file(log_path, t_strconcat(prefix, ": ", NULL));
}
- log_path = getenv("INFO_LOG_PATH");
+ log_path = home_expand(getenv("INFO_LOG_PATH"));
if (log_path != NULL && *log_path != '\0')
i_set_info_file(log_path);
More information about the dovecot-cvs
mailing list