dovecot-2.0: imap, pop3: Root mail access wasn't properly disall...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Oct 6 01:06:21 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/a249daa4d960
changeset: 9969:a249daa4d960
user: Timo Sirainen <tss at iki.fi>
date: Mon Oct 05 18:06:13 2009 -0400
description:
imap, pop3: Root mail access wasn't properly disallowed.
diffstat:
2 files changed, 3 insertions(+), 4 deletions(-)
src/imap/main.c | 2 +-
src/pop3/main.c | 5 ++---
diffs (34 lines):
diff -r 4d7c7f4b8ab6 -r a249daa4d960 src/imap/main.c
--- a/src/imap/main.c Mon Oct 05 16:55:31 2009 -0400
+++ b/src/imap/main.c Mon Oct 05 18:06:13 2009 -0400
@@ -174,7 +174,7 @@ int main(int argc, char *argv[], char *e
if (IS_STANDALONE())
service_flags |= MASTER_SERVICE_FLAG_STANDALONE;
else
- service_flags |= MAIL_STORAGE_SERVICE_FLAG_DISALLOW_ROOT;
+ storage_service_flags |= MAIL_STORAGE_SERVICE_FLAG_DISALLOW_ROOT;
dump_capability = getenv("DUMP_CAPABILITY") != NULL;
if (dump_capability) {
diff -r 4d7c7f4b8ab6 -r a249daa4d960 src/pop3/main.c
--- a/src/pop3/main.c Mon Oct 05 16:55:31 2009 -0400
+++ b/src/pop3/main.c Mon Oct 05 18:06:13 2009 -0400
@@ -69,8 +69,7 @@ int main(int argc, char *argv[], char *e
};
enum master_service_flags service_flags =
MASTER_SERVICE_FLAG_STD_CLIENT;
- enum mail_storage_service_flags storage_service_flags =
- MAIL_STORAGE_SERVICE_FLAG_DISALLOW_ROOT;
+ enum mail_storage_service_flags storage_service_flags = 0;
struct mail_storage_service_input input;
struct mail_user *mail_user;
const struct pop3_settings *set;
@@ -87,7 +86,7 @@ int main(int argc, char *argv[], char *e
if (IS_STANDALONE())
service_flags |= MASTER_SERVICE_FLAG_STANDALONE;
else
- service_flags |= MAIL_STORAGE_SERVICE_FLAG_DISALLOW_ROOT;
+ storage_service_flags |= MAIL_STORAGE_SERVICE_FLAG_DISALLOW_ROOT;
master_service = master_service_init("pop3", service_flags, argc, argv);
while ((c = getopt(argc, argv, master_service_getopt_string())) > 0) {
More information about the dovecot-cvs
mailing list