Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5709:c6cde7452a9f HEAD
nfs check: If namespaces are defined, use the first one's location instead
of mail_location.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 12 Jun 2007 20:15:00 +0300 |
parents | 7420a96ebc8f |
children | d4b7a25c814c |
files | src/master/mail-process.c |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/master/mail-process.c Tue Jun 12 20:06:51 2007 +0300 +++ b/src/master/mail-process.c Tue Jun 12 20:15:00 2007 +0300 @@ -666,8 +666,15 @@ } } - if (nfs_check) - nfs_warn_if_found(getenv("MAIL"), full_home_dir); + if (nfs_check) { + /* ideally we should check all of the namespaces, + but for now don't bother. */ + const char *mail_location = getenv("NAMESPACE_1"); + + if (mail_location == NULL) + mail_location = getenv("MAIL"); + nfs_warn_if_found(mail_location, full_home_dir); + } env_put("LOGGED_IN=1"); env_put(t_strconcat("HOME=", home_dir, NULL));