Skip to content

Comments

[Backport 2.20-maintenance] Restore builtins.pathExists behavior on broken symlinks#10023

Merged
roberth merged 2 commits into2.20-maintenancefrom
backport-9985-to-2.20-maintenance
Feb 16, 2024
Merged

[Backport 2.20-maintenance] Restore builtins.pathExists behavior on broken symlinks#10023
roberth merged 2 commits into2.20-maintenancefrom
backport-9985-to-2.20-maintenance

Conversation

@github-actions
Copy link

Automatic backport to 2.20-maintenance, triggered by a label in #9985.

alois31 and others added 2 commits February 16, 2024 14:24
Commit 83c067c changed `builtins.pathExists`
to resolve symlinks before checking for existence. Consequently, if the path
refers to a symlink itself, existence of the target of the symlink (instead of
the symlink itself) was checked. Restore the previous behavior by skipping
symlink resolution in the last component.

(cherry picked from commit 89e21ab)
@roberth roberth merged commit 98c22e8 into 2.20-maintenance Feb 16, 2024
@edolstra edolstra deleted the backport-9985-to-2.20-maintenance branch March 29, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

with-tests Issues related to testing. PRs with tests have some priority

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants