dovecot-1.2: deliver: If log path begins with ~/, expand it to $...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Jan 9 21:03:51 EET 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/26516ae3b687
changeset: 8609:26516ae3b687
user: Timo Sirainen <tss at iki.fi>
date: Fri Jan 09 14:03:44 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 63ec83d811bb -r 26516ae3b687 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:44 2009 -0500
@@ -688,7 +688,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;
@@ -702,7 +702,7 @@ static void open_logfile(const char *use
i_set_failure_file(log_path, prefix);
}
- 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