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:
parent
5246c95363
commit
2788232654
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue