summaryrefslogtreecommitdiff
path: root/server/monitor
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2009-12-08 15:55:48 +0100
committerStephen Gallagher <sgallagh@redhat.com>2009-12-08 23:48:41 -0500
commitc7c6e38b67df85632567f00b5900e179eadc1fb5 (patch)
tree482a2461043673a92b48320a8a7994861cf1223d /server/monitor
parent519f6d060dc52159d1ad1e8141367650c447adcf (diff)
downloadsssd-c7c6e38b67df85632567f00b5900e179eadc1fb5.tar.gz
sssd-c7c6e38b67df85632567f00b5900e179eadc1fb5.tar.bz2
sssd-c7c6e38b67df85632567f00b5900e179eadc1fb5.zip
Do not start with provider=files
Fixes: #233
Diffstat (limited to 'server/monitor')
-rw-r--r--server/monitor/monitor.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/monitor/monitor.c b/server/monitor/monitor.c
index d47b3a80..f5909f67 100644
--- a/server/monitor/monitor.c
+++ b/server/monitor/monitor.c
@@ -1182,6 +1182,12 @@ static int add_new_provider(struct mt_ctx *ctx, const char *name)
return ret;
}
+ if (strcasecmp(svc->provider, "files") == 0) {
+ /* The files provider is not valid anymore */
+ DEBUG(0, ("The \"files\" provider is invalid\n"));
+ return EINVAL;
+ }
+
if (strcasecmp(svc->provider, "local") == 0) {
/* The LOCAL provider requires no back-end currently
* We'll add it to the service list, but we don't need