[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
[ira/wip.git] / source3 / rpc_server / srv_svcctl_nt.c
index dba209eb07c6f4549af7411c6f33dafa20434878..c868f94f767fe11deedf1849dfbe2e78edd697b9 100644 (file)
@@ -626,7 +626,7 @@ static WERROR fill_svc_config( TALLOC_CTX *ctx, const char *name, SERVICE_CONFIG
           the client from showing the "Start" button (if of course the services
           are not running */
 
-       if ( strequal( name, "NETLOGON" ) && ( !share_defined(name) ) )
+       if ( strequal( name, "NETLOGON" ) && ( lp_servicenumber(name) == -1 ) )
                config->start_type = SVCCTL_DISABLED;
        else if ( strequal( name, "WINS" ) && ( !lp_wins_support() ))
                config->start_type = SVCCTL_DISABLED;