summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-08-06 16:20:42 +0200
committerIra Cooper <ira@samba.org>2015-04-22 13:57:30 +0200
commitdb60f1d9562f91fcb83c7e9f42915ec9b426abca (patch)
treef6123caf06c676bd52e95113d39a44b88fb9aa7f /source3/param
parent5a7147a9d9f89073eb6347f6db9db21b7168ee24 (diff)
downloadsamba-db60f1d9562f91fcb83c7e9f42915ec9b426abca.tar.gz
s3:param: in lp_load_initial_only(), make sure to save defaults.
This is the initial loading of the config in the daemons (and some tools). So we should save the defaults here. This should especially take into account some dynamic defaults like log file and maybe some changed values handed in via the command line. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 75a0d4265c4..c73dcfea79b 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -3818,7 +3818,7 @@ bool lp_load_initial_only(const char *pszFname)
{
return lp_load_ex(pszFname,
true, /* global only */
- false, /* save_defaults */
+ true, /* save_defaults */
false, /* add_ipc */
true, /* initialize_globals */
false, /* allow_include_registry */