diff options
author | randomdan <randomdan@localhost> | 2012-01-09 09:44:55 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2012-01-09 09:44:55 +0000 |
commit | 076d25cdc32f085ef938a9ed72c19e7981ac77c8 (patch) | |
tree | eb15d0a3258576faae8941c0df37827d708df4e6 | |
parent | Initialise flags properly and only use script when there is one (diff) | |
download | project2-076d25cdc32f085ef938a9ed72c19e7981ac77c8.tar.bz2 project2-076d25cdc32f085ef938a9ed72c19e7981ac77c8.tar.xz project2-076d25cdc32f085ef938a9ed72c19e7981ac77c8.zip |
Don't implicitally follow symlinks
-rw-r--r-- | project2/files/fsRows.cpp | 2 |
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); |