diff options
Diffstat (limited to 'src/librc/librc.c')
-rw-r--r-- | src/librc/librc.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/librc/librc.c b/src/librc/librc.c index a03e2f12..436aa47f 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -833,42 +833,3 @@ char **rc_services_scheduled (const char *service) return (list); } librc_hidden_def(rc_services_scheduled) - -bool rc_service_plugable (const char *service) -{ - char *list; - char *p; - char *star; - char *token; - bool allow = true; - char *match = getenv ("RC_PLUG_SERVICES"); - if (! match) - return true; - - list = xstrdup (match); - p = list; - while ((token = strsep (&p, " "))) { - bool truefalse = true; - if (token[0] == '!') { - truefalse = false; - token++; - } - - star = strchr (token, '*'); - if (star) { - if (strncmp (service, token, star - token) == 0) { - allow = truefalse; - break; - } - } else { - if (strcmp (service, token) == 0) { - allow = truefalse; - break; - } - } - } - - free (list); - return (allow); -} -librc_hidden_def(rc_service_plugable) |