diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-10-17T12·34+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-10-17T12·34+0000 |
commit | 3059df0f1e7c70da8b63e09420af84014ef96295 (patch) | |
tree | 48f090abe88eb0926cc3ed336e158118848bb399 /src/libexpr | |
parent | 822dba2210a03144510df357c4c38229b1e4c211 (diff) |
* baseNameOf: paths don't have to be absolute.
Diffstat (limited to 'src/libexpr')
-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 e6c3958d34c4..19d23392216c 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); } |