aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/primops.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-01-24 15:31:54 +0100
committerEelco Dolstra <edolstra@gmail.com>2017-01-24 15:31:54 +0100
commit4e6a2fbc561f3e692a5644b3816a205ba769f39e (patch)
tree57dcbe15179de8709e9eee8ec5ab068db004722b /src/libexpr/primops.cc
parentfa738e50bcd79e5e536d7453f5571e2b13b01bda (diff)
Revert "Propagate path context via builtins.readFile"
This reverts commit f7f0116dd727ac954fb04d9ef9b9fe7ec034e563. Issue #1174.
Diffstat (limited to 'src/libexpr/primops.cc')
-rw-r--r--src/libexpr/primops.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index 4398cc951..59623874c 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -779,7 +779,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(), context);
+ mkString(v, s.c_str());
}