s3:loadparm: fix the reload of the configuration: also reload activated registry...
authorMichael Adam <obnox@samba.org>
Fri, 22 Jul 2011 08:11:52 +0000 (10:11 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 5 Mar 2012 19:55:50 +0000 (20:55 +0100)
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri Jul 22 16:53:49 CEST 2011 on sn-devel-104
(cherry picked from commit efbe1602bd014eada4811f336bdccbf4692d3807)

The last 2 patches address bug 8327 (config reload fails to reload shares from
registry).
(cherry picked from commit 12b60f9688cb64fbfce729b3555ab75a71fbb949)

source3/param/loadparm.c

index 32092ff7a3efb5c6a8802f6b67793d9c86682b70..28ffc08d498647c9462af391c34308a7110aef5c 100644 (file)
@@ -9275,8 +9275,12 @@ bool lp_load_ex(const char *pszFname,
                bRetval = false;
        }
 
-       if (bRetval && lp_registry_shares() && allow_registry_shares) {
-               bRetval = process_registry_shares();
+       if (bRetval && lp_registry_shares()) {
+               if (allow_registry_shares) {
+                       bRetval = process_registry_shares();
+               } else {
+                       bRetval = reload_registry_shares();
+               }
        }
 
        lp_add_auto_services(lp_auto_services());