Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8609:26516ae3b687 HEAD
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.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 09 Jan 2009 14:03:44 -0500 |
parents | 63ec83d811bb |
children | 9f98a74e0757 |
files | src/deliver/deliver.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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 @@ 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);