dovecot-2.2: acl: Treat empty plugin { acl } setting the same as...

dovecot at dovecot.org dovecot at dovecot.org
Sat Jan 5 01:14:36 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/721aba9128b9
changeset: 15573:721aba9128b9
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jan 04 05:29:25 2013 +0200
description:
acl: Treat empty plugin { acl } setting the same as if it didn't exist.
This allows using -o plugin/acl= to disable ACLs.

diffstat:

 src/plugins/acl/acl-storage.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r a7a45a56211c -r 721aba9128b9 src/plugins/acl/acl-storage.c
--- a/src/plugins/acl/acl-storage.c	Fri Jan 04 03:50:35 2013 +0200
+++ b/src/plugins/acl/acl-storage.c	Fri Jan 04 05:29:25 2013 +0200
@@ -52,7 +52,7 @@
 	const char *env;
 
 	env = mail_user_plugin_getenv(user, "acl");
-	if (env != NULL)
+	if (env != NULL && *env != '\0')
 		acl_mail_user_create(user, env);
 	else {
 		if (user->mail_debug)


More information about the dovecot-cvs mailing list