diff --git a/lib/base/utility.cpp b/lib/base/utility.cpp index d43e12b90..f6c258cef 100644 --- a/lib/base/utility.cpp +++ b/lib/base/utility.cpp @@ -385,7 +385,7 @@ bool Utility::Glob(const String& pathSpec, const boost::function 0; gp++, left--) { struct stat statbuf; - if (lstat(*gp, &statbuf) < 0) + if (stat(*gp, &statbuf) < 0) continue; if (!S_ISDIR(statbuf.st_mode) && !S_ISREG(statbuf.st_mode))