summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2012-01-09 09:44:55 +0000
committerrandomdan <randomdan@localhost>2012-01-09 09:44:55 +0000
commit076d25cdc32f085ef938a9ed72c19e7981ac77c8 (patch)
treeeb15d0a3258576faae8941c0df37827d708df4e6
parentInitialise flags properly and only use script when there is one (diff)
downloadproject2-076d25cdc32f085ef938a9ed72c19e7981ac77c8.tar.bz2
project2-076d25cdc32f085ef938a9ed72c19e7981ac77c8.tar.xz
project2-076d25cdc32f085ef938a9ed72c19e7981ac77c8.zip
Don't implicitally follow symlinks
-rw-r--r--project2/files/fsRows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/project2/files/fsRows.cpp b/project2/files/fsRows.cpp
index 0020205..9dfa3f8 100644
--- a/project2/files/fsRows.cpp
+++ b/project2/files/fsRows.cpp
@@ -100,7 +100,7 @@ FsRows::execute(SearchState & ss, const Path & dir, const RowProcessor * rp) con
ss.curPathStr = itr->path().string();
ss.fields[0] = ss.curPathStr;
ss.curPath = itr->path();
- stat(ss.curPathStr.c_str(), &ss.curStat);
+ lstat(ss.curPathStr.c_str(), &ss.curStat);
if (boost::algorithm::all(ss.specs, boost::bind(&SpecBase::matches, _1, &ss))) {
ss.process(rp);