X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=git_acl.c;h=796f5e96bd935b540e23196780b509917b3a658f;hb=cb5d643dcf8bc721ae41a605bdd7bd8facc16c8d;hp=4bb75ee46fe715788da76b44ae6415db956ffbf7;hpb=180b28ed0209f51ae2ec79cfe5f4c153f3490f3d;p=repo_shell.git diff --git a/git_acl.c b/git_acl.c index 4bb75ee..796f5e9 100644 --- a/git_acl.c +++ b/git_acl.c @@ -16,19 +16,12 @@ */ #include -//#include -//#include -//#include -//#include -//#include -//#include -//#include +#include #include #include "ini.h" #include "utility.h" -#include "mystrtok.h" +#include "stringutils.h" #include "stra.h" -#include "match.h" #include "git_acl.h" enum { @@ -115,23 +108,6 @@ static acl_clear(acl_t *acl) stra_destroy(&acl->userids); } -static bool str_has_word(const char* string, const char* word) -{ - char *_s = xstrdup(string); - char *s = _s; - char *p = my_strtok(&s, " \t\n"); - - while (p) { - if (match(p, word)) { - free(_s); - return true; - } - p = my_strtok(&s, " \t\n"); - } - free(_s); - return false; -} - static int acl_handler(void* user, const char* section, const char* name, const char* value) {