From 3059df0f1e7c70da8b63e09420af84014ef96295 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 17 Oct 2006 12:34:13 +0000 Subject: [PATCH] * baseNameOf: paths don't have to be absolute. --- src/libexpr/primops.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index e6c3958d3..19d233922 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -311,7 +311,7 @@ static Expr primDerivationLazy(EvalState & state, const ATermVector & args) static Expr primBaseNameOf(EvalState & state, const ATermVector & args) { PathSet context; - return makeStr(baseNameOf(coerceToPath(state, args[0], context)), context); + return makeStr(baseNameOf(coerceToString(state, args[0], context)), context); }