From 076d25cdc32f085ef938a9ed72c19e7981ac77c8 Mon Sep 17 00:00:00 2001 From: randomdan Date: Mon, 9 Jan 2012 09:44:55 +0000 Subject: Don't implicitally follow symlinks --- project2/files/fsRows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3