]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Remove is_visible_file() from dptr_ReadDirName().
authorJeremy Allison <jra@samba.org>
Fri, 4 Jun 2021 20:27:52 +0000 (13:27 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 9 Jun 2021 13:14:30 +0000 (13:14 +0000)
dptr_ReadDirName() is only called from smbd_dirptr_get_entry(),
which is now doing it's own call to is_visible_fsp().

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

index 287e7cbba102679766ab4f4bbf0f010cd7b702d0..6dfb9d93d90ae90e4fb1aad4e4289bef1482a6ec 100644 (file)
@@ -473,19 +473,6 @@ static char *dptr_ReadDirName(TALLOC_CTX *ctx,
 
        dptr->did_stat = true;
 
-       /* First check if it should be visible. */
-       if (!is_visible_file(dptr->conn,
-                       dptr->dir_hnd,
-                       dptr->wcard,
-                       pst,
-                       true)) {
-               /* This only returns false if the file was found, but
-                  is explicitly not visible. Set us to end of
-                  directory, but return NULL as we know we can't ever
-                  find it. */
-               goto ret;
-       }
-
        if (VALID_STAT(*pst)) {
                name = talloc_strdup(ctx, dptr->wcard);
                goto ret;