Bug 326568

Summary: SCAN : parsing collection runs infinitely when encountering softlink to "." directory
Product: [Applications] digikam Reporter: Christian Esken <esken>
Component: Database-ScanAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 3.5.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Christian Esken 2013-10-24 15:21:51 UTC
Scan collection runs infinitely when encountering softlink to "." directory. I had this problem when doing the first/initial collection scan.

Reproducible: Always

Steps to Reproduce:
1. mkdir LinkCollection ; cd LinkCollection; ln -s thumbs .
2. Copy 3 images to LinkCollection
3. Add a new Collection with LinkCollection as base directory

Actual Results:  
Scan never completes. When looking at the /proc/ filesystem  you can see that the directory is revisited again and again:
ls -l /proc/DIGICAM_PID/fd/
Comment 1 caulier.gilles 2014-09-14 21:52:01 UTC

*** This bug has been marked as a duplicate of bug 202094 ***
Comment 2 caulier.gilles 2023-10-24 05:41:33 UTC
Christian,

The digiKam 8.2.0 pre-release for Windows is available for testing :

https://files.kde.org/digikam/

Problem still reproducible on your computer ?

Thanks in advance

Gilles Caulier