From: Kern Sibbald Date: Wed, 29 Jul 2009 19:48:16 +0000 (+0000) Subject: Add ACL check for client in estimate command X-Git-Tag: Release-7.0.0~2759 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f065a73ff9a3d3175383c869ff6fd453fd78a2f9;p=bacula%2Fbacula Add ACL check for client in estimate command git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@9120 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/dird/ua_cmds.c b/bacula/src/dird/ua_cmds.c index 6fb958a074..112f7da0cd 100644 --- a/bacula/src/dird/ua_cmds.c +++ b/bacula/src/dird/ua_cmds.c @@ -1150,6 +1150,10 @@ static int estimate_cmd(UAContext *ua, const char *cmd) ua->error_msg(_("Client \"%s\" not found.\n"), ua->argv[i]); return 1; } + if (!acl_access_ok(ua, Client_ACL, client->name())) { + ua->error_msg(_("No authorization for Client \"%s\"\n"), client->name()); + return 1; + } continue; } else { ua->error_msg(_("Client name missing.\n")); @@ -1293,7 +1297,7 @@ static int estimate_cmd(UAContext *ua, const char *cmd) * If the job is in accurate mode, we send the list of * all files to FD. */ - Dmsg1(40, "estimate accurate=%i\n", jcr->accurate); + Dmsg1(40, "estimate accurate=%d\n", jcr->accurate); if (!send_accurate_current_files(jcr)) { goto bail_out; }