From 029b45f9c16ce9c6df855a6125f605216d95ec78 Mon Sep 17 00:00:00 2001 From: koichirok Date: Fri, 2 Mar 2012 06:43:14 +0000 Subject: [PATCH] 2012-03-02 Koichiro Kikuchi * pandora_agent: Fixed bug of my previous commit (removed "qw"). git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5688 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_agents/unix/ChangeLog | 4 ++++ pandora_agents/unix/pandora_agent | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pandora_agents/unix/ChangeLog b/pandora_agents/unix/ChangeLog index 96668de3f1..7e1374886e 100644 --- a/pandora_agents/unix/ChangeLog +++ b/pandora_agents/unix/ChangeLog @@ -1,3 +1,7 @@ +2012-03-02 Koichiro Kikuchi + + * pandora_agent: Fixed bug of my previous commit (removed "qw"). + 2012-03-01 Koichiro Kikuchi * pandora_agent: Added symlink checks for temporary files before writing diff --git a/pandora_agents/unix/pandora_agent b/pandora_agents/unix/pandora_agent index 0ef84779a0..d7ccf98572 100755 --- a/pandora_agents/unix/pandora_agent +++ b/pandora_agents/unix/pandora_agent @@ -764,7 +764,7 @@ sub check_remote_config () { close (CONF_FILE); # Remove temporary files if they exist as symlink to avoid symlink attack - for my $file (qw("$Conf{'temporal'}/$RemoteMD5File" "$Conf{'temporal'}/$RemoteConfFile")) { + for my $file ("$Conf{'temporal'}/$RemoteMD5File", "$Conf{'temporal'}/$RemoteConfFile") { error ("File '$file' already exists as a symlink and could not be removed: $!") if (-l $file && ! unlink($file)); }