mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-14 17:07:17 -05:00
fixed bug preventing plugins loaded as symbolic links to be considered by folderIterator
This commit is contained in:
parent
5af54254ca
commit
5d1f479a42
@ -115,11 +115,14 @@ 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)
|
||||||
{
|
{
|
||||||
std::cerr << "(II) Skipping symbolic link " << mFullPath << std::endl;
|
if(!mAllowSymLinks)
|
||||||
should_skip = true ;
|
{
|
||||||
return true ;
|
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)
|
else if( ent->d_type != DT_DIR && ent->d_type != DT_REG)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user