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 GitLab committed May 30, 2017
1 parent 4272501 commit ad9a6d2
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 ad9a6d2

Please sign in to comment.