This commit is contained in:
ed
2022-08-13 00:58:49 +02:00
parent 84b5bbd3b6
commit 1c69ccc6cd
6 changed files with 79 additions and 5 deletions

View File

@@ -354,7 +354,8 @@ def walkdir(err, top, seen):
"""recursive statdir"""
atop = os.path.abspath(os.path.realpath(top))
if atop in seen:
return err.append((top, "recursive-symlink"))
err.append((top, "recursive-symlink"))
return
seen = seen[:] + [atop]
for ap, inf in sorted(statdir(err, top)):