Skip to content

Commit

Permalink
acl: Global ACL file was parsed as if it was local ACL file
Browse files Browse the repository at this point in the history
This caused some of the ACL handling not work exactly as expected.
  • Loading branch information
sirainen authored and villesavolainen committed Jun 9, 2017
1 parent 475db67 commit 830af9a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/plugins/acl/acl-global-file.c
Expand Up @@ -105,8 +105,11 @@ acl_global_file_parse_line(struct acl_global_file_parse_ctx *ctx,

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)
Expand Down

0 comments on commit 830af9a

Please sign in to comment.