]> granicus.if.org Git - icinga2/commitdiff
Follow symlinks in Utility::GlobRecursive
authorGunnar Beutner <gunnar@beutner.name>
Tue, 22 Mar 2016 07:21:44 +0000 (08:21 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Tue, 22 Mar 2016 07:22:11 +0000 (08:22 +0100)
fixes #11347

lib/base/utility.cpp

index b139ce7b051622421852033cef2b779da158eab3..2cf581fe07df5afc1392d761f08cd8edd3b03d5c 100644 (file)
@@ -661,7 +661,7 @@ bool Utility::GlobRecursive(const String& path, const String& pattern, const boo
 
                struct stat statbuf;
 
-               if (lstat(cpath.CStr(), &statbuf) < 0)
+               if (stat(cpath.CStr(), &statbuf) < 0)
                        continue;
 
                if (S_ISDIR(statbuf.st_mode))