From c7c6e38b67df85632567f00b5900e179eadc1fb5 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 8 Dec 2009 15:55:48 +0100 Subject: Do not start with provider=files Fixes: #233 --- server/monitor/monitor.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'server/monitor') 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 -- cgit