Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
<samba:parameter name="remote announce"
context="G"
type="string"
+ substitution="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>
void announce_remote(time_t t)
{
- char *s;
+ char *s = NULL;
const char *ptr;
static time_t last_time = 0;
char *s2;
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;