Fix #3793: CFMUtils.pm can not sync-up symbolic link directory under cfmdir

This commit is contained in:
Sheng Feng Xing 2013-09-22 14:34:40 +08:00
parent c3749b7f93
commit eb16d571a0

View File

@ -363,7 +363,8 @@ sub updateCFMSynclistFile {
# recursively list the files under cfm directory
my @files = ();
find ( sub { push @files, $File::Find::name if (! -d) }, $cfmdir);
find ( { wanted => sub { push @files, $File::Find::name if -f }, follow => 1 }, $cfmdir);
if (!@files) # not files under cfm directory, skip to next loop
{
next;