mirror of https://github.com/Icinga/icinga2.git
parent
1bf12c9685
commit
e45ede6271
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue