loadarm: fix testparm with "config backend = registry".
authorMichael Adam <obnox@samba.org>
Mon, 26 May 2008 09:58:11 +0000 (11:58 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 10 Jul 2008 21:34:05 +0000 (23:34 +0200)
commit6fd007905d4ba09309735a14635502008e082cb6
tree8c2fd6de8796aa5a2b71a14a1bf85d5fd5a0fd59
parente1bbcc6c5401c59726ca40dadff5760c2800b5c1
loadarm: fix testparm with "config backend = registry".

Set the iServiceIndex to "-1" for starup with either config
backend (originally only for text backend). Otherwise,
process_registry_shares() will fail.

Currently, the only user of lp_load_with_registry_shares() is testparm.

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