View Issue Details

IDProjectCategoryView StatusLast Update
0037790LazarusPackagespublic2020-10-25 00:59
ReporterCudaText man_ Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
OSUbuntu 20 x64 
Product Version2.1 (SVN) 
Summary0037790: FileUtil.FindAllFiles runs forever, because of symlinks
DescriptionDemo
https://github.com/Alexey-T/FreePascal-tests/tree/master/FindAllFiles

On Ubuntu 20 I enter "folders"="/usr/lib", "masks"="libpython3*".
It runs forever.
Screenshot from debugger added - dir path has REPEATED symlink name added many times.
I will post directory listing to comments.
TagsNo tags attached.
Fixed in Revision
LazTarget
WidgetsetGTK 2
Attached Files

Relationships

related to 0037792 closedBart Broersma feature req: FileUtil.TFileSearcher excluding file/folder masks 
related to 0037791 new feature req: FileUtil.TFileSearcher propety MaxDirLevels 

Activities

CudaText man_

2020-09-21 16:47

reporter  

bug-findall.png (182,320 bytes)   
bug-findall.png (182,320 bytes)   

CudaText man_

2020-09-21 16:49

reporter   ~0125728

dir.png (63,608 bytes)   
dir.png (63,608 bytes)   

Bart Broersma

2020-10-10 18:20

developer   ~0126220

Simplest option would be to not follow symlinks (so basically ignore them).
More difficult: get terget of symlink and find out wether or not this will lead to recurrency.

Juha Manninen

2020-10-25 00:59

developer   ~0126526

I feel it goes out of scope of this function. It has already grown too complex IMO.
Specialized components can be provided in external libraries.

Issue History

Date Modified Username Field Change
2020-09-21 16:47 CudaText man_ New Issue
2020-09-21 16:47 CudaText man_ File Added: bug-findall.png
2020-09-21 16:49 CudaText man_ Note Added: 0125728
2020-09-21 16:49 CudaText man_ File Added: dir.png
2020-09-21 23:19 Bart Broersma Relationship added related to 0037792
2020-10-10 18:20 Bart Broersma Note Added: 0126220
2020-10-25 00:55 Juha Manninen Relationship added related to 0037791
2020-10-25 00:59 Juha Manninen Note Added: 0126526