dovecot-1.2: 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:40 EET 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/af3fa3dd0d31
changeset: 8707:af3fa3dd0d31
user: Timo Sirainen <tss at iki.fi>
date: Tue Feb 03 11:57:35 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 e2251b0bd12b -r af3fa3dd0d31 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:35 2009 -0500
@@ -768,7 +768,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);
@@ -777,7 +777,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