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 | 2adf4dd2cb7b8b3dd2c7f6a4d76245134c51e169 (patch) | |
tree | eb15d0a3258576faae8941c0df37827d708df4e6 | |
parent | Initialise flags properly and only use script when there is one (diff) | |
download | project2-2adf4dd2cb7b8b3dd2c7f6a4d76245134c51e169.tar.bz2 project2-2adf4dd2cb7b8b3dd2c7f6a4d76245134c51e169.tar.xz project2-2adf4dd2cb7b8b3dd2c7f6a4d76245134c51e169.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); |