]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
acl: Treat empty plugin { acl } setting the same as if it didn't exist.
authorTimo Sirainen <tss@iki.fi>
Fri, 4 Jan 2013 03:29:25 +0000 (05:29 +0200)
committerTimo Sirainen <tss@iki.fi>
Fri, 4 Jan 2013 03:29:25 +0000 (05:29 +0200)
This allows using -o plugin/acl= to disable ACLs.

src/plugins/acl/acl-storage.c

index c8147109b17d136bea0522d3d428687e0a45bc66..f616feead724b66c034b88463b0b7995f94e1c7f 100644 (file)
@@ -52,7 +52,7 @@ void acl_mail_user_created(struct mail_user *user)
        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)