Skip to content
Snippets Groups Projects
Commit d6077d9a authored by Pavel Kácha's avatar Pavel Kácha
Browse files

Script name variable now untainted to allow running within -T application constraints (#1314)

parent 65af9821
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ sub getNewEvents ...@@ -36,7 +36,7 @@ sub getNewEvents
WardenClientConf::loadConf($conf_file); WardenClientConf::loadConf($conf_file);
# set name of ID file for each client aplication # set name of ID file for each client aplication
my $caller_name = $FindBin::Script; my ($caller_name) = ($FindBin::Script =~ /^(.*)$/); # untaint
my $id_file = $vardir . $caller_name . "-". ($requested_type || "any") . ".id"; my $id_file = $vardir . $caller_name . "-". ($requested_type || "any") . ".id";
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
......
...@@ -39,7 +39,7 @@ sub getNewEvents ...@@ -39,7 +39,7 @@ sub getNewEvents
WardenClientConf::loadConf($conf_file); WardenClientConf::loadConf($conf_file);
# set name of ID file for each client aplication # set name of ID file for each client aplication
my $caller_name = $FindBin::Script; my ($caller_name) = ($FindBin::Script =~ /^(.*)$/); # untaint
my $id_file = $vardir . $caller_name . "-". ($requested_type || "any") . ".id"; my $id_file = $vardir . $caller_name . "-". ($requested_type || "any") . ".id";
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment