mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-07 08:35:16 -04:00
added an additional hard limit to directory depth, just in case
This commit is contained in:
parent
f497905497
commit
4766a8927a
2 changed files with 10 additions and 3 deletions
|
@ -211,7 +211,7 @@ void LocalDirectoryUpdater::recursUpdateSharedDir(const std::string& cumulated_p
|
|||
|
||||
case librs::util::FolderIterator::TYPE_DIR:
|
||||
|
||||
if(mMaxShareDepth > 0u && current_depth <= mMaxShareDepth)
|
||||
if( (mMaxShareDepth > 0u && current_depth <= mMaxShareDepth) || (mMaxShareDepth==0 && current_depth < 64)) // 64 is here as a safe limit, to make loops impossible.
|
||||
subdirs.insert(dirIt.file_name());
|
||||
|
||||
#ifdef DEBUG_LOCAL_DIR_UPDATER
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue