[dovecot-cvs] dovecot-1.0: nfs check: If namespaces are defined, use the first...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jun 12 20:15:03 EEST 2007
details: http://hg.dovecot.org/dovecot-1.0/rev/bdd45370eb26
changeset: 5302:bdd45370eb26
user: Timo Sirainen <tss at iki.fi>
date: Tue Jun 12 20:14:59 2007 +0300
description:
nfs check: If namespaces are defined, use the first one's location instead
of mail_location.
diffstat:
1 file changed, 9 insertions(+), 2 deletions(-)
src/master/mail-process.c | 11 +++++++++--
diffs (21 lines):
diff -r 072b4b19227f -r bdd45370eb26 src/master/mail-process.c
--- a/src/master/mail-process.c Tue Jun 12 20:06:50 2007 +0300
+++ b/src/master/mail-process.c Tue Jun 12 20:14:59 2007 +0300
@@ -668,8 +668,15 @@ bool create_mail_process(enum process_ty
}
}
- 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));
More information about the dovecot-cvs
mailing list