Glob: Use stat() instead of lstat().

Refs #5123
This commit is contained in:
Gunnar Beutner 2013-11-22 10:41:57 +01:00
parent 7a3a8de83c
commit e32a149049
1 changed files with 1 additions and 1 deletions

View File

@ -385,7 +385,7 @@ bool Utility::Glob(const String& pathSpec, const boost::function<void (const Str
for (gp = gr.gl_pathv, left = gr.gl_pathc; left > 0; gp++, left--) { for (gp = gr.gl_pathv, left = gr.gl_pathc; left > 0; gp++, left--) {
struct stat statbuf; struct stat statbuf;
if (lstat(*gp, &statbuf) < 0) if (stat(*gp, &statbuf) < 0)
continue; continue;
if (!S_ISDIR(statbuf.st_mode) && !S_ISREG(statbuf.st_mode)) if (!S_ISDIR(statbuf.st_mode) && !S_ISREG(statbuf.st_mode))