aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2024-02-15 11:00:13 +0100
committerGitHub <noreply@github.com>2024-02-15 11:00:13 +0100
commit2a6a7aad3f16e76783641d67e2ea58ebe3f35d77 (patch)
tree6a75b9dd1495d961a6b2e647f2841eec9ea561e4
parent2db5c5326bb1c7ed11321be4bfd64b201b74320a (diff)
parentf36d4aefd3bb2112527d11d23eae994db5c320f1 (diff)
Merge pull request #10018 from NixOS/fix-18-build
[2.18] Fix the build
-rw-r--r--src/libexpr/parser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y
index 28f6ba41b..dd2b20e25 100644
--- a/src/libexpr/parser.y
+++ b/src/libexpr/parser.y
@@ -693,7 +693,7 @@ SourcePath resolveExprPath(SourcePath path)
if (++followCount >= maxFollow)
throw Error("too many symbolic links encountered while traversing the path '%s'", path);
if (path.lstat().type != InputAccessor::tSymlink) break;
- path = {path.accessor, CanonPath(path.readLink(), path.path.parent().value_or(CanonPath::root))};
+ path = {CanonPath(path.readLink(), path.path.parent().value_or(CanonPath::root))};
}
/* If `path' refers to a directory, append `/default.nix'. */