loadarm: fix testparm with "config backend = registry".
commit575423eb9d3a03848429534086bd81b24c39a045
authorMichael Adam <obnox@samba.org>
Mon, 26 May 2008 09:58:11 +0000 (26 11:58 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 16 Jul 2008 07:02:58 +0000 (16 09:02 +0200)
tree9275566c857f7e995f9942adbcfee04a0624b4f7
parent6ae1e2cb81a87df21dfce89158338714079f9ee9
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)
(cherry picked from commit 6fd007905d4ba09309735a14635502008e082cb6)
source/param/loadparm.c