mirror of
https://github.com/NixOS/nix
synced 2025-07-07 14:21:48 +02:00
Restore builtins.pathExists
behavior on broken symlinks
Commit83c067c0fa
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 commit89e21ab4bd
)
This commit is contained in:
parent
982d07d009
commit
0571e6e9b4
5 changed files with 46 additions and 19 deletions
1
tests/functional/lang/symlink-resolution/broken
Symbolic link
1
tests/functional/lang/symlink-resolution/broken
Symbolic link
|
@ -0,0 +1 @@
|
|||
nonexistent
|
Loading…
Add table
Add a link
Reference in a new issue