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 10:21:50 +0000 (12:21 +0200)
This prevents users from getting access to "/" in misconfigured setups.

Michael
(cherry picked from commit d16e40b5ef9add630d027ff92e440c44bfb88ef0)

source3/param/loadparm.c

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