]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
init_srv_share_info_ctr: fix counting of services.
authorMichael Adam <obnox@samba.org>
Wed, 12 Mar 2008 01:12:11 +0000 (02:12 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 12 Mar 2008 01:12:34 +0000 (02:12 +0100)
The number of services was recorded too early leading to
registry shares not showing up in browse lists.

Guenther - please check.

Michael

source/rpc_server/srv_srvsvc_nt.c

index 2658e5a37ac79eb85f57be248fe95f6a346c5fad..56d3159949715d37f5c2d8653be8ec15a8d3edc5 100644 (file)
@@ -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. */