Skip to content

Commit c8bac15

Browse files
committed
Stop ignoring ERROR_CANT_RESOLVE_FILENAME error in _getfinalpathname_nonstrict()
1 parent 492c66b commit c8bac15

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/ntpath.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,8 +603,7 @@ def _getfinalpathname_nonstrict(path):
603603
# 87: ERROR_INVALID_PARAMETER
604604
# 123: ERROR_INVALID_NAME
605605
# 1920: ERROR_CANT_ACCESS_FILE
606-
# 1921: ERROR_CANT_RESOLVE_FILENAME (implies unfollowable symlink)
607-
allowed_winerror = 1, 2, 3, 5, 21, 32, 50, 67, 87, 123, 1920, 1921
606+
allowed_winerror = 1, 2, 3, 5, 21, 32, 50, 67, 87, 123, 1920
608607

609608
# Non-strict algorithm is to find as much of the target directory
610609
# as we can and join the rest.

0 commit comments

Comments
 (0)