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-5.0.0~442 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a2fea6e33093f771bd6de6efe2578f9b8f9dc524;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; }