dovecot-2.0-sslstream: MAIL_STORAGE_SERVICE_FLAG_ENABLE_CORE_DUM...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Feb 13 02:56:34 EET 2010
details: http://hg.dovecot.org/dovecot-2.0-sslstream/rev/7664afedc7bb
changeset: 10366:7664afedc7bb
user: Timo Sirainen <tss at iki.fi>
date: Wed Nov 18 18:24:44 2009 -0500
description:
MAIL_STORAGE_SERVICE_FLAG_ENABLE_CORE_DUMPS: Also chdir() to home dir.
diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
src/lib-storage/mail-storage-service.c | 3 ++-
diffs (13 lines):
diff -r 4183f16e6f60 -r 7664afedc7bb src/lib-storage/mail-storage-service.c
--- a/src/lib-storage/mail-storage-service.c Wed Nov 18 18:07:59 2009 -0500
+++ b/src/lib-storage/mail-storage-service.c Wed Nov 18 18:24:44 2009 -0500
@@ -328,7 +328,8 @@ mail_storage_service_init_post(struct ma
dec2str(geteuid()), dec2str(getegid()), home);
}
- if ((ctx->flags & MAIL_STORAGE_SERVICE_FLAG_TEMP_PRIV_DROP) != 0) {
+ if ((ctx->flags & MAIL_STORAGE_SERVICE_FLAG_TEMP_PRIV_DROP) != 0 &&
+ (ctx->flags & MAIL_STORAGE_SERVICE_FLAG_ENABLE_CORE_DUMPS) == 0) {
/* we don't want to write core files to any users' home
directories since they could contain information about other
users' mails as well. so do no chdiring to home. */
More information about the dovecot-cvs
mailing list