diff options
author | Andrew Bartlett <abartlet@samba.org> | 2014-01-09 14:02:07 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-01-28 17:26:45 +1300 |
commit | 1571c44a3e28fe2fdbcced6ed8b33c1985485833 (patch) | |
tree | e828ab674957e0412137c3062c2b94519023ab89 /source3 | |
parent | 3d80a9765b18930effede20e403af1f612e70c6a (diff) | |
download | samba-1571c44a3e28fe2fdbcced6ed8b33c1985485833.tar.gz |
param: Add default for dns update command to s3 loadparm
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Diffstat (limited to 'source3')
-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 9252abd8f97..b8ae8689cd7 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(); } |