From: Michael Adam Date: Wed, 12 Mar 2008 01:12:11 +0000 (+0100) Subject: init_srv_share_info_ctr: fix counting of services. X-Git-Tag: samba-3.3.0pre1~3314 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=737e470e02d1233fda51e903f27955e45427e95a;p=thirdparty%2Fsamba.git init_srv_share_info_ctr: fix counting of services. The number of services was recorded too early leading to registry shares not showing up in browse lists. Guenther - please check. Michael --- diff --git a/source/rpc_server/srv_srvsvc_nt.c b/source/rpc_server/srv_srvsvc_nt.c index 2658e5a37ac..56d31599497 100644 --- a/source/rpc_server/srv_srvsvc_nt.c +++ b/source/rpc_server/srv_srvsvc_nt.c @@ -498,8 +498,9 @@ static WERROR init_srv_share_info_ctr(pipes_struct *p, /* Ensure all the usershares are loaded. */ become_root(); - num_services = load_usershare_shares(); + load_usershare_shares(); load_registry_shares(); + num_services = lp_numservices(); unbecome_root(); /* Count the number of entries. */