about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2007-01-29T13·32+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2007-01-29T13·32+0000
commit7dedbd896ade732ab2fe88a5fe88e069cb329fa5 (patch)
treeb6d5afe41fc20436f891226c4333b085d2adea07 /src
parent84a84afb0ec60551c606fa95699afb6153465704 (diff)
* filterSource: pass strings to the predicate function instead of
  paths.  Paths can have unexpected semantics.

Diffstat (limited to 'src')
-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 270bc4446bff..b80e20692127 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" :