X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fcgroup.c;h=18de888ba677b6d7ae7cc43ea46bd19bdda2acd1;hb=e41969e3d1a8bda8b0b2f7eb012cef1c8835509a;hp=1327486509a6eaaf54af54119087f077f8429f42;hpb=01efdf13a6ee9a14fd6d8b41a5d522d5917e1fbc;p=elogind.git diff --git a/src/core/cgroup.c b/src/core/cgroup.c index 132748650..18de888ba 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -20,6 +20,7 @@ ***/ #include +#include #include "path-util.h" #include "special.h" @@ -246,7 +247,8 @@ static int whitelist_major(const char *path, const char *name, char type, const w++; w += strspn(w, WHITESPACE); - if (!streq(w, name)) + + if (fnmatch(name, w, 0) != 0) continue; sprintf(buf,