summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source3/param/loadparm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 9252abd8f9..b8ae8689cd 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -1067,6 +1067,12 @@ static void init_globals(bool reinit_globals)
Globals.samba_kcc_command = (const char **)str_list_make_v3(NULL, s, NULL);
SAFE_FREE(s);
+ if (asprintf(&s, "%s/samba_dnsupdate", get_dyn_SCRIPTSBINDIR()) < 0) {
+ smb_panic("init_globals: ENOMEM");
+ }
+ Globals.dns_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();
}