mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 06:35:08 -04:00
fixed bug preventing plugins loaded as symbolic links to be considered by folderIterator
This commit is contained in:
parent
5af54254ca
commit
5d1f479a42
1 changed files with 7 additions and 4 deletions
|
@ -115,11 +115,14 @@ bool FolderIterator::updateFileInfo(bool& should_skip)
|
|||
|
||||
#warning should we take care of symbolic links on windows?
|
||||
#ifndef WINDOWS_SYS
|
||||
if( ent->d_type == DT_LNK && !mAllowSymLinks)
|
||||
if( ent->d_type == DT_LNK)
|
||||
{
|
||||
std::cerr << "(II) Skipping symbolic link " << mFullPath << std::endl;
|
||||
should_skip = true ;
|
||||
return true ;
|
||||
if(!mAllowSymLinks)
|
||||
{
|
||||
std::cerr << "(II) Skipping symbolic link " << mFullPath << std::endl;
|
||||
should_skip = true ;
|
||||
return true ;
|
||||
}
|
||||
}
|
||||
else if( ent->d_type != DT_DIR && ent->d_type != DT_REG)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue