smbdotconf: mark "hide files" with substitution="1"
authorRalph Boehme <slow@samba.org>
Thu, 31 Oct 2019 17:44:25 +0000 (18:44 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 27 Nov 2019 10:25:33 +0000 (10:25 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
docs-xml/smbdotconf/filename/hidefiles.xml
source3/smbd/service.c

index 0b475053ee1901a99238185bb38653f3e8b0c5e2..d4e3da39ee69487148e6308bc0ffa9076c5f5f2c 100644 (file)
@@ -1,6 +1,7 @@
 <samba:parameter name="hide files"
-                                type="string"
+                 type="string"
                  context="S"
+                 substitution="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>This is a list of files or directories that are not 
index 06a0f379a9f128e3a81f76debb67818f2f7510b5..4b574661256ff8fb7acd1c8368e37c3d3be98494 100644 (file)
@@ -826,7 +826,7 @@ static NTSTATUS make_connection_snum(struct smbXsrv_connection *xconn,
                set_namearray( &conn->veto_list,
                               lp_veto_files(talloc_tos(), snum));
                set_namearray( &conn->hide_list,
-                              lp_hide_files(talloc_tos(), snum));
+                              lp_hide_files(talloc_tos(), lp_sub, snum));
                set_namearray( &conn->veto_oplock_list,
                               lp_veto_oplock_files(talloc_tos(), snum));
                set_namearray( &conn->aio_write_behind_list,