forked from lix-project/lix
* filterSource: pass strings to the predicate function instead of
paths. Paths can have unexpected semantics.
This commit is contained in:
parent
84a84afb0e
commit
7dedbd896a
|
@ -749,7 +749,7 @@ struct FilterFromExpr : PathFilter
|
||||||
|
|
||||||
Expr call =
|
Expr call =
|
||||||
makeCall(
|
makeCall(
|
||||||
makeCall(filter, makePath(toATerm(path))),
|
makeCall(filter, makeStr(path)),
|
||||||
makeStr(
|
makeStr(
|
||||||
S_ISREG(st.st_mode) ? "regular" :
|
S_ISREG(st.st_mode) ? "regular" :
|
||||||
S_ISDIR(st.st_mode) ? "directory" :
|
S_ISDIR(st.st_mode) ? "directory" :
|
||||||
|
|
Loading…
Reference in a new issue