2012-04-19 Koichiro Kikuchi <koichiro@rworks.jp>

* 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
This commit is contained in:
koichirok 2012-04-19 12:19:30 +00:00
parent 5246c95363
commit 2788232654
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2012-04-19 Koichiro Kikuchi <koichiro@rworks.jp>
* pandora_agent: Also added the temporal directory to the file path
for symlink check.
2012-04-18 Ramon Novoa <rnovoa@artica.es>
* pandora_agent: Add the temporal directory to the file path before

View File

@ -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);
}