summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-12 02:12:11 +0100
committerMichael Adam <obnox@samba.org>2008-03-12 02:12:34 +0100
commit16f4e059f79373ddfe293b1ba9ab7dd4cb466042 (patch)
tree3c9cae37bd2be1355180465cf6605ee3381e89a6
parentb371db93bba1fd1753966a7270f0d6936d5863f2 (diff)
downloadsamba-16f4e059f79373ddfe293b1ba9ab7dd4cb466042.tar.gz
samba-16f4e059f79373ddfe293b1ba9ab7dd4cb466042.tar.bz2
samba-16f4e059f79373ddfe293b1ba9ab7dd4cb466042.zip
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 (This used to be commit 737e470e02d1233fda51e903f27955e45427e95a)
-rw-r--r--source3/rpc_server/srv_srvsvc_nt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c
index 2658e5a37a..56d3159949 100644
--- a/source3/rpc_server/srv_srvsvc_nt.c
+++ b/source3/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. */