diff options
author | Ralph Boehme <slow@samba.org> | 2019-11-05 11:39:27 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2019-11-27 10:25:36 +0000 |
commit | dbc82a9f19e2fb4b7f9d9d708a7c5ed0eb4f0778 (patch) | |
tree | 209f2c8470cce5aaa2d0e389ee298335bb53b33d /source3/nmbd | |
parent | 5c5dbcc397f96bb9960786a3f91b7d2f4012aeff (diff) | |
download | samba-dbc82a9f19e2fb4b7f9d9d708a7c5ed0eb4f0778.tar.gz |
smbdotconf: mark "remote announce" 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_sendannounce.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/nmbd/nmbd_sendannounce.c b/source3/nmbd/nmbd_sendannounce.c index a9cdf1c5a58..48396ddf1c5 100644 --- a/source3/nmbd/nmbd_sendannounce.c +++ b/source3/nmbd/nmbd_sendannounce.c @@ -461,7 +461,7 @@ void announce_my_servers_removed(void) void announce_remote(time_t t) { - char *s; + char *s = NULL; const char *ptr; static time_t last_time = 0; char *s2; @@ -469,13 +469,15 @@ void announce_remote(time_t t) char *comment; int stype = lp_default_server_announce(); TALLOC_CTX *frame = NULL; + const struct loadparm_substitution *lp_sub = + loadparm_s3_global_substitution(); if (last_time && (t < (last_time + REMOTE_ANNOUNCE_INTERVAL))) return; last_time = t; - s = lp_remote_announce(talloc_tos()); + s = lp_remote_announce(talloc_tos(), lp_sub); if (!*s) return; |