From: Thomas Wouters Date: Tue, 3 Jun 2025 12:12:21 +0000 (+0200) Subject: Fix a glaring error in the logic backport of posixpath. X-Git-Tag: v3.10.18~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b357f2bca375948aca03047d9209ce364e64bfa4;p=thirdparty%2FPython%2Fcpython.git Fix a glaring error in the logic backport of posixpath. --- diff --git a/Lib/posixpath.py b/Lib/posixpath.py index e550b470da5b..085a23d8e593 100644 --- a/Lib/posixpath.py +++ b/Lib/posixpath.py @@ -429,9 +429,7 @@ def _joinrealpath(path, rest, strict, seen): newpath = join(path, name) try: st = os.lstat(newpath) - except OSError: - if strict: - raise + except ignored_error: is_link = False else: is_link = stat.S_ISLNK(st.st_mode)