Merge pull request #5863 from Icinga/fix/glob-5859

Fix glob error handling
This commit is contained in:
Gunnar Beutner 2017-12-14 19:08:54 +01:00 committed by GitHub
commit 3403844b74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -553,7 +553,7 @@ bool Utility::Glob(const String& pathSpec, const std::function<void (const Strin
int rc = glob(pathSpec.CStr(), GLOB_NOSORT, GlobErrorHandler, &gr);
if (rc < 0) {
if (rc) {
if (rc == GLOB_NOMATCH)
return false;