dovecot-1.1: If mail_chroot is set, don't fail at startup in dum...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Feb 3 18:57:27 EET 2009
details: http://hg.dovecot.org/dovecot-1.1/rev/563c076366ae
changeset: 8147:563c076366ae
user: Timo Sirainen <tss at iki.fi>
date: Tue Feb 03 11:57:17 2009 -0500
description:
If mail_chroot is set, don't fail at startup in dump-capability.
diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
src/master/mail-process.c | 4 ++--
diffs (21 lines):
diff -r 1cb9b9de4700 -r 563c076366ae src/master/mail-process.c
--- a/src/master/mail-process.c Mon Feb 02 19:03:25 2009 -0500
+++ b/src/master/mail-process.c Tue Feb 03 11:57:17 2009 -0500
@@ -759,7 +759,7 @@ create_mail_process(enum process_type pr
/* setup environment - set the most important environment first
(paranoia about filling up environment without noticing) */
restrict_access_set_env(system_user, uid, gid, set->mail_priv_gid_t,
- chroot_dir,
+ dump_capability ? "" : chroot_dir,
set->first_valid_gid, set->last_valid_gid,
set->mail_access_groups);
@@ -768,7 +768,7 @@ create_mail_process(enum process_type pr
if (dump_capability)
env_put("DUMP_CAPABILITY=1");
- if (*home_dir == '\0' && *chroot_dir == '\0') {
+ if ((*home_dir == '\0' && *chroot_dir == '\0') || dump_capability) {
full_home_dir = "";
ret = -1;
} else {
More information about the dovecot-cvs
mailing list