From 1921d77fa2490bd19aded05924a62795641231ea Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 5 May 2009 17:02:46 +0200 Subject: [PATCH] s3:mark registry shares without path unavailable in the server, too This prevents users from getting access to "/" in misconfigured setups. Michael --- source/smbd/service.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/smbd/service.c b/source/smbd/service.c index 5e75fce0ff4..98b25369d1b 100644 --- a/source/smbd/service.c +++ b/source/smbd/service.c @@ -286,6 +286,10 @@ static int load_registry_service(const char *servicename) TALLOC_FREE(value); } + if (!service_ok(res)) { + res = -1; + } + error: TALLOC_FREE(key); -- 2.47.2