loadparm: fix init_globals() to re-init all options event when called 2nd time.
commitb8dbb6444d82da23f8d44b02131e52ba5e1397d0
authorMichael Adam <obnox@samba.org>
Mon, 10 Mar 2008 16:16:01 +0000 (10 17:16 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 17 Mar 2008 12:49:17 +0000 (17 13:49 +0100)
tree7db2b4c1b27f645408172680faa21a776ab4848a
parentc4b15391d2fb9f07999c91387560d7d94a917fb4
loadparm: fix init_globals() to re-init all options event when called 2nd time.

Up to the globals had only been fully reset when init_globals() was called
for the first time. But a full restart is needed for use with
"config backend = registry". (And should be with "config file = ...", but
in this case the restart is outsourced to the daemons.) This left
some options (like e.g. "realm") set to values that were set in smb.conf
before the occurence of "config backend = registry".

Now this misbehaviour is fixed with this change.

Michael
(cherry picked from commit f12259d9c4c34b99f5b655cab4b210159cb0e188)
source/param/loadparm.c