]> git.ipfire.org Git - thirdparty/samba.git/commit
s3/loadparm: ensure default service options are not changed
authorRalph Boehme <slow@samba.org>
Tue, 21 Nov 2017 13:28:48 +0000 (14:28 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 5 Dec 2017 09:32:10 +0000 (10:32 +0100)
commite0a08bdf49d2c3d07f70685bf6bf4404f0e4e119
tree3db23eff04a87c5a3501357b1f91bb75de8228c3
parent37e816e75fb08cdb3c9000d05757f2481bd8b478
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