diff options
-rw-r--r-- | source3/param/loadparm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index b8ae8689cd..484cd69ff0 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -1073,6 +1073,12 @@ static void init_globals(bool reinit_globals) Globals.dns_update_command = (const char **)str_list_make_v3(NULL, s, NULL); SAFE_FREE(s); + if (asprintf(&s, "%s/samba_spnupdate", get_dyn_SCRIPTSBINDIR()) < 0) { + smb_panic("init_globals: ENOMEM"); + } + Globals.spn_update_command = (const char **)str_list_make_v3(NULL, s, NULL); + SAFE_FREE(s); + /* Now put back the settings that were set with lp_set_cmdline() */ apply_lp_set_cmdline(); } |