]> granicus.if.org Git - icinga2/commitdiff
Glob: Use stat() instead of lstat().
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 22 Nov 2013 09:41:57 +0000 (10:41 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 22 Nov 2013 09:41:57 +0000 (10:41 +0100)
Refs #5123

lib/base/utility.cpp

index d43e12b90af78492ae0e7a4b11a636031c91794a..f6c258cef8c898938ca6bf5d2cf6fb587e9696a6 100644 (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--) {
                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))