From: Ralph Boehme Date: Tue, 5 Nov 2019 10:46:23 +0000 (+0100) Subject: smbdotconf: mark "remote browse sync" with substitution="1" X-Git-Tag: ldb-2.1.0~531 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d0db70ef7379ab722daed78ff5a877b48efd083;p=thirdparty%2Fsamba.git smbdotconf: mark "remote browse sync" with substitution="1" Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher --- diff --git a/docs-xml/smbdotconf/misc/remotebrowsesync.xml b/docs-xml/smbdotconf/misc/remotebrowsesync.xml index 91a8c8f8829..c0b106ee7cd 100644 --- a/docs-xml/smbdotconf/misc/remotebrowsesync.xml +++ b/docs-xml/smbdotconf/misc/remotebrowsesync.xml @@ -1,6 +1,7 @@ diff --git a/source3/nmbd/nmbd_sendannounce.c b/source3/nmbd/nmbd_sendannounce.c index 48396ddf1c5..2842bbf4f49 100644 --- a/source3/nmbd/nmbd_sendannounce.c +++ b/source3/nmbd/nmbd_sendannounce.c @@ -542,13 +542,15 @@ void browse_sync_remote(time_t t) char *p; unstring myname; 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_browse_sync(talloc_tos()); + s = lp_remote_browse_sync(talloc_tos(), lp_sub); if (!*s) return;