Commit fdb9376d authored by Filip Brygidyn's avatar Filip Brygidyn Committed by Sean Davis

Walk Method: Consider symlinks as visited only after actually following them (bug #16318)

The bugfix attempt in cac84de5 was incorrect and was adding links to 'processed_links' list preemptively when visiting the link location path. The correct behavior is to add it to the list when visiting the link target path instead.
Signed-off-by: Sean Davis's avatarSean Davis <smd.seandavis@gmail.com>
parent 556ba4eb
......@@ -337,7 +337,6 @@ class CatfishSearchMethod_Walk(CatfishSearchMethod):
# Link: ~/.wine/dosdevices/z:/ -> /
if realroot.startswith(realpath):
continue
processed_links.append(realpath)
if os.path.basename(path).startswith("."):
if islink:
dotlinks.append(path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment