diff options
author | Ralph Boehme <slow@samba.org> | 2019-11-04 16:50:41 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2019-11-27 10:25:34 +0000 |
commit | fb434275164c21494bbb8be7d0f36c7289b20ce0 (patch) | |
tree | e25216391510a52473269f1a49acfecd249fcb7e /source3/nmbd | |
parent | 12e97ee3e86d72b9edad9a2ac37249ffa0d28331 (diff) | |
download | samba-fb434275164c21494bbb8be7d0f36c7289b20ce0.tar.gz |
smbdotconf: mark "next configfile" with substitution="1"
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/nmbd')
-rw-r--r-- | source3/nmbd/nmbd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index 66cd65ca208..b4097d1dc57 100644 --- a/source3/nmbd/nmbd.c +++ b/source3/nmbd/nmbd.c @@ -389,12 +389,14 @@ static void reload_interfaces(time_t t) static bool reload_nmbd_services(bool test) { + const struct loadparm_substitution *lp_sub = + loadparm_s3_global_substitution(); bool ret; set_remote_machine_name("nmbd", False); if ( lp_loaded() ) { - char *fname = lp_next_configfile(talloc_tos()); + char *fname = lp_next_configfile(talloc_tos(), lp_sub); if (file_exist(fname) && !strcsequal(fname,get_dyn_CONFIGFILE())) { set_dyn_CONFIGFILE(fname); test = False; |