# HG changeset patch # User Timo Sirainen # Date 1496069915 -10800 # Node ID 8c9f8c766e3643e9abe8f025b415a9ac0f367efe # Parent eaddde982df5fe18a5ab497290152df151fe41e5 acl: Global ACL file was parsed as if it was local ACL file This caused some of the ACL handling not work exactly as expected. diff -r eaddde982df5 -r 8c9f8c766e36 src/plugins/acl/acl-global-file.c --- a/src/plugins/acl/acl-global-file.c Mon May 29 17:26:52 2017 +0300 +++ b/src/plugins/acl/acl-global-file.c Mon May 29 17:58:35 2017 +0300 @@ -105,8 +105,11 @@ pright = array_append_space(&ctx->parse_rights); pright->vpattern = p_strdup(ctx->file->rights_pool, vpattern); - return acl_rights_parse_line(line, ctx->file->rights_pool, - &pright->rights, error_r); + if (acl_rights_parse_line(line, ctx->file->rights_pool, + &pright->rights, error_r) < 0) + return -1; + pright->rights.global = TRUE; + return 0; } static int acl_global_file_read(struct acl_global_file *file)