smbdotconf: mark "remote browse sync" with substitution="1"
authorRalph Boehme <slow@samba.org>
Tue, 5 Nov 2019 10:46:23 +0000 (11:46 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 27 Nov 2019 10:25:36 +0000 (10:25 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
docs-xml/smbdotconf/misc/remotebrowsesync.xml
source3/nmbd/nmbd_sendannounce.c

index 91a8c8f8829af11373a13056022a608a8b935655..c0b106ee7cdeb4352e892d94749a8076558a9e6d 100644 (file)
@@ -1,6 +1,7 @@
 <samba:parameter name="remote browse sync"
                  context="G"
                  type="string"
+                 substitution="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>
index 48396ddf1c5960f5d77e51b58de8a5084adf13fa..2842bbf4f4961ff2101dd3712aad4b412f9a85dc 100644 (file)
@@ -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;