From: Michael Adam Date: Tue, 5 May 2009 15:02:46 +0000 (+0200) Subject: s3:mark registry shares without path unavailable in the server, too X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1921d77fa2490bd19aded05924a62795641231ea;p=thirdparty%2Fsamba.git s3:mark registry shares without path unavailable in the server, too This prevents users from getting access to "/" in misconfigured setups. Michael --- 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);