From e32a149049c35ee050954e79c520367bf1fbfe86 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 22 Nov 2013 10:41:57 +0100 Subject: [PATCH] Glob: Use stat() instead of lstat(). Refs #5123 --- lib/base/utility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))