Skip to content

Commit 1f8656e

Browse files
committed
normalize paths via normcase() before comparing or adding to seen set.
1 parent 6c00dea commit 1f8656e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/ntpath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ def _getfinalpathname_nonstrict(path):
709709
try:
710710
# The OS could not resolve this path fully, so we attempt
711711
# to follow the link ourselves. If we succeed, keep running the loop.
712-
new_path = _readlink_deep(path, seen)
712+
new_path = normcase(_readlink_deep(path, seen))
713713
if new_path in seen:
714714
return join(new_path, tail) if tail else new_path
715715
else:

0 commit comments

Comments
 (0)