s3/loadparm: ensure default service options are not changed
commitcecbc43a5a3c03d184f2f4e8d80e066b740c4fe9
authorRalph Boehme <slow@samba.org>
Tue, 21 Nov 2017 13:28:48 +0000 (21 14:28 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 5 Dec 2017 09:34:26 +0000 (5 10:34 +0100)
treee80fd10234389ec55f56654e387e1f23cbc64213
parent7dc2782ab51feb0ed55ab3ee8fe2b6748c404f3f
s3/loadparm: ensure default service options are not changed

Rename sDefault to _sDefault and make it const. sDefault is make a copy
of _sDefault in in the initialisation function lp_load_ex().

As we may end up in setup_lp_context() without going through
lp_load_ex(), sDefault may still be uninitialized at that point, so I'm
initializing lp_ctx->sDefault from _sDefault.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13051

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit ea4e6f95ae5c97e8570b8090ee7e7a577b49a8c3)
source3/param/loadparm.c