diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-03-04T10·47+0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-03-04T11·04+0300 |
commit | f7f0116dd727ac954fb04d9ef9b9fe7ec034e563 (patch) | |
tree | aea668e96ab4f13a7e80126291ce0fa1fb918696 | |
parent | 0a26b56cba5d9f1fa815273fadc500284dda1118 (diff) |
Propagate path context via builtins.readFile
-rw-r--r-- | src/libexpr/primops.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index 5bfb95be6849..aaef467c098b 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -765,7 +765,7 @@ static void prim_readFile(EvalState & state, const Pos & pos, Value * * args, Va string s = readFile(state.checkSourcePath(path)); if (s.find((char) 0) != string::npos) throw Error(format("the contents of the file ‘%1%’ cannot be represented as a Nix string") % path); - mkString(v, s.c_str()); + mkString(v, s.c_str(), context); } |