Skip to content

Commit

Permalink
Fix wrong call of acl_access_ok
Browse files Browse the repository at this point in the history
A typo in calling acl_access_ok was fixed.

Fixes #327: "No authorization for Client" on any operations from BAT.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
  • Loading branch information
pstorz authored and Marco van Wieringen committed Aug 7, 2014
1 parent 6786e9b commit 2742cbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dird/ua_cmds.c
Expand Up @@ -2430,7 +2430,7 @@ bool open_client_db(UAContext *ua, bool use_private)
/* Try for client keyword */
i = find_arg_with_value(ua, NT_("client"));
if (i >= 0) {
if (!acl_access_ok(ua, Client_ACL, ua->argv[i]), true) {
if (!acl_access_ok(ua, Client_ACL, ua->argv[i], true)) {
ua->error_msg(_("No authorization for Client \"%s\"\n"), ua->argv[i]);
return false;
}
Expand Down

0 comments on commit 2742cbe

Please sign in to comment.