summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-10-17 12:34:13 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-10-17 12:34:13 +0000
commit3059df0f1e7c70da8b63e09420af84014ef96295 (patch)
tree48f090abe88eb0926cc3ed336e158118848bb399
parent822dba2210a03144510df357c4c38229b1e4c211 (diff)
downloadguix-3059df0f1e7c70da8b63e09420af84014ef96295.tar.gz
* baseNameOf: paths don't have to be absolute.
-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 e6c3958d34..19d2339221 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);
 }