From d16e40b5ef9add630d027ff92e440c44bfb88ef0 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 28 Apr 2009 01:24:27 +0200 Subject: s3:mark registry shares without path unavailable just as with text config This prevents users from getting access to "/" in misconfigured setups. Michael --- source3/param/loadparm.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3') diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 070c279d57..b7c34d0028 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; } -- cgit