From 4646e946100f103edd509a716b9c1a8849fc7895 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Thu, 19 Feb 2015 08:39:25 -0500 Subject: [PATCH] ExprConcatStrings: canonicalize concatenated paths --- src/libexpr/eval.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index 298f6a3a6..95b56e84d 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -1174,7 +1174,8 @@ void ExprConcatStrings::eval(EvalState & state, Env & env, Value & v) else if (firstType == tPath) { if (!context.empty()) throwEvalError("a string that refers to a store path cannot be appended to a path, at %1%", pos); - mkPath(v, s.str().c_str()); + auto path = canonPath(s.str()); + mkPath(v, path.c_str()); } else mkString(v, s.str(), context); }