s3:mark registry shares without path unavailable just as with text config
authorMichael Adam <obnox@samba.org>
Mon, 27 Apr 2009 23:24:27 +0000 (01:24 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 28 Apr 2009 13:03:11 +0000 (15:03 +0200)
This prevents users from getting access to "/" in misconfigured setups.

Michael

Signed-off-by: Michael Adam <obnox@samba.org>
source/param/loadparm.c

index a17cb1f5deb766b65d6cca2102275b01ba22fab3..15aa4db7eb2343b9eccaf4f3baff462e90869c48 100644 (file)
@@ -6529,6 +6529,9 @@ static bool process_registry_service(struct smbconf_service *service)
                        return false;
                }
        }
+       if (iServiceIndex >= 0) {
+               ret = service_ok(iServiceIndex);
+       }
        return true;
 }