s3:mark registry shares without path unavailable in the server, too
authorMichael Adam <obnox@samba.org>
Tue, 5 May 2009 15:02:46 +0000 (17:02 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 6 May 2009 06:52:42 +0000 (08:52 +0200)
This prevents users from getting access to "/" in misconfigured setups.

Michael

source/smbd/service.c

index 5e75fce0ff43144131ebf5944fd021b586fb887c..98b25369d1b8e1d8d3b4cc33ba23849ee59d60ae 100644 (file)
@@ -286,6 +286,10 @@ static int load_registry_service(const char *servicename)
                TALLOC_FREE(value);
        }
 
+       if (!service_ok(res)) {
+               res = -1;
+       }
+
  error:
 
        TALLOC_FREE(key);