* baseNameOf: paths don't have to be absolute.

This commit is contained in:
Eelco Dolstra 2006-10-17 12:34:13 +00:00
parent 822dba2210
commit 3059df0f1e
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}