From 7dedbd896ade732ab2fe88a5fe88e069cb329fa5 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 29 Jan 2007 13:32:50 +0000 Subject: [PATCH] * filterSource: pass strings to the predicate function instead of paths. Paths can have unexpected semantics. --- 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 270bc4446..b80e20692 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -749,7 +749,7 @@ struct FilterFromExpr : PathFilter Expr call = makeCall( - makeCall(filter, makePath(toATerm(path))), + makeCall(filter, makeStr(path)), makeStr( S_ISREG(st.st_mode) ? "regular" : S_ISDIR(st.st_mode) ? "directory" :