From 2742cbec711105a07068bc33e124c03ecb23a5a4 Mon Sep 17 00:00:00 2001 From: Philipp Storz Date: Thu, 7 Aug 2014 13:00:22 +0200 Subject: [PATCH] Fix wrong call of acl_access_ok 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 --- src/dird/ua_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dird/ua_cmds.c b/src/dird/ua_cmds.c index 39603fa9d45..a4d4f7b7a83 100644 --- a/src/dird/ua_cmds.c +++ b/src/dird/ua_cmds.c @@ -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; }