fixed bug preventing plugins loaded as symbolic links to be considered by folderIterator

This commit is contained in:
cyril soler 2016-11-21 10:13:26 +01:00
parent 5af54254ca
commit 5d1f479a42

View File

@ -115,12 +115,15 @@ bool FolderIterator::updateFileInfo(bool& should_skip)
#warning should we take care of symbolic links on windows? #warning should we take care of symbolic links on windows?
#ifndef WINDOWS_SYS #ifndef WINDOWS_SYS
if( ent->d_type == DT_LNK && !mAllowSymLinks) if( ent->d_type == DT_LNK)
{
if(!mAllowSymLinks)
{ {
std::cerr << "(II) Skipping symbolic link " << mFullPath << std::endl; std::cerr << "(II) Skipping symbolic link " << mFullPath << std::endl;
should_skip = true ; should_skip = true ;
return true ; return true ;
} }
}
else if( ent->d_type != DT_DIR && ent->d_type != DT_REG) else if( ent->d_type != DT_DIR && ent->d_type != DT_REG)
{ {
std::cerr << "(II) Skipping file of unknown type " << ent->d_type << ": " << mFullPath << std::endl; std::cerr << "(II) Skipping file of unknown type " << ent->d_type << ": " << mFullPath << std::endl;