1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 14:21:48 +02:00

Restore builtins.pathExists behavior on broken symlinks

Commit 83c067c0fa 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.
This commit is contained in:
Alois Wohlschlager 2024-02-10 20:56:54 +01:00
parent 28a988bdde
commit 89e21ab4bd
No known key found for this signature in database
GPG key ID: E0F59EA5E5216914
5 changed files with 46 additions and 19 deletions

View file

@ -0,0 +1 @@
nonexistent