From: Michael Adam Date: Mon, 27 Apr 2009 23:24:27 +0000 (+0200) Subject: s3:mark registry shares without path unavailable just as with text config X-Git-Tag: tdb-1.1.5~877 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d16e40b5ef9add630d027ff92e440c44bfb88ef0;p=thirdparty%2Fsamba.git s3:mark registry shares without path unavailable just as with text config This prevents users from getting access to "/" in misconfigured setups. Michael --- diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 070c279d572..b7c34d00284 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -6818,6 +6818,9 @@ static bool process_smbconf_service(struct smbconf_service *service) return false; } } + if (iServiceIndex >= 0) { + ret = service_ok(iServiceIndex); + } return true; }