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 09:40:26 +0000 (11:40 +0200)
This prevents users from getting access to "/" in misconfigured setups.

Michael

source3/param/loadparm.c

index 070c279d572dbb88a5d1076ffd101a6075bd1bc7..b7c34d0028407cf11d632105e25789e94f90b54a 100644 (file)
@@ -6818,6 +6818,9 @@ static bool process_smbconf_service(struct smbconf_service *service)
                        return false;
                }
        }
+       if (iServiceIndex >= 0) {
+               ret = service_ok(iServiceIndex);
+       }
        return true;
 }