1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

param: Add default for spn update command to s3 loadparm

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
This commit is contained in:
Andrew Bartlett 2014-01-09 14:03:34 +13:00
parent 1571c44a3e
commit 6b040b2f54

View File

@ -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();
}