Skip to content

Commit 658392e

Browse files
edolstramergify[bot]
authored andcommitted
getDefaultNixPath(): Don't add symlinks if the target doesn't exist
(cherry picked from commit 8ac49ea)
1 parent d3a52c2 commit 658392e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libexpr/eval-settings.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Strings EvalSettings::getDefaultNixPath()
5757
{
5858
Strings res;
5959
auto add = [&](const Path & p, const std::string & s = std::string()) {
60-
if (pathAccessible(p)) {
60+
if (std::filesystem::exists(p)) {
6161
if (s.empty()) {
6262
res.push_back(p);
6363
} else {

0 commit comments

Comments
 (0)