]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: In smbd_dirptr_get_entry(), add an early check for VETO_PATH.
authorJeremy Allison <jra@samba.org>
Fri, 4 Jun 2021 18:20:08 +0000 (11:20 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 9 Jun 2021 13:14:30 +0000 (13:14 +0000)
Eventually we will be able to remove the 'bool use_veto' parameter
from is_visible_fsp().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/dir.c

index f11d434c39c208556fde9cf2cab848cfcf509d1e..9ce4ba19ee9d64b78904c61eaff137265dd88f31 100644 (file)
@@ -846,6 +846,11 @@ bool smbd_dirptr_get_entry(TALLOC_CTX *ctx,
                        continue;
                }
 
+               if (IS_VETO_PATH(conn, dname)) {
+                       TALLOC_FREE(dname);
+                       continue;
+               }
+
                /*
                 * fname may get mangled, dname is never mangled.
                 * Whenever we're accessing the filesystem we use