From 8a5e86820d91249a934fb6480b5cbd1d479c2373 Mon Sep 17 00:00:00 2001 From: koichirok Date: Thu, 19 Apr 2012 12:19:30 +0000 Subject: [PATCH] 2012-04-19 Koichiro Kikuchi * pandora_agent: Also added the temporal directory to the file path for symlink check. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6034 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_agents/unix/ChangeLog | 5 +++++ pandora_agents/unix/pandora_agent | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pandora_agents/unix/ChangeLog b/pandora_agents/unix/ChangeLog index fca126dc6e..8a993b7ced 100644 --- a/pandora_agents/unix/ChangeLog +++ b/pandora_agents/unix/ChangeLog @@ -1,3 +1,8 @@ +2012-04-19 Koichiro Kikuchi + + * pandora_agent: Also added the temporal directory to the file path + for symlink check. + 2012-04-18 Ramon Novoa * pandora_agent: Add the temporal directory to the file path before diff --git a/pandora_agents/unix/pandora_agent b/pandora_agents/unix/pandora_agent index 5ed9aafd24..5a30b03475 100755 --- a/pandora_agents/unix/pandora_agent +++ b/pandora_agents/unix/pandora_agent @@ -704,8 +704,8 @@ sub send_buffered_xml_files () { opendir(TEMPORAL, $Conf{'temporal'}) or return; while (my $xml_file = readdir(TEMPORAL)) { - # Skip symlink and non data files - next if (-l $xml_file || $xml_file !~ m/\.data$/); + # Skip non data files and symlinks + next if ($xml_file !~ m/\.data$/ || -l "$Conf{'temporal'}/$xml_file"); send_file ("$Conf{'temporal'}/$xml_file", 1); }