]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Switch from SMB_VFS_READDIR_ATTR() to SMB_VFS_FREADDIR_ATTR()
authorSamuel Cabrero <scabrero@samba.org>
Thu, 13 May 2021 11:17:19 +0000 (13:17 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 14 May 2021 20:04:28 +0000 (20:04 +0000)
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/trans2.c

index 8075a7f60f4380a186bf09e46433487b8ca16d5a..7977468bd9552c92038326f039884bf2f97446e4 100644 (file)
@@ -1784,7 +1784,9 @@ static NTSTATUS smbd_marshall_dir_entry(TALLOC_CTX *ctx,
        }
        allocation_size = SMB_VFS_GET_ALLOC_SIZE(conn, NULL, &smb_fname->st);
 
-       status = SMB_VFS_READDIR_ATTR(conn, smb_fname, ctx, &readdir_attr_data);
+       status = SMB_VFS_FREADDIR_ATTR(smb_fname->fsp,
+                                      ctx,
+                                      &readdir_attr_data);
        if (!NT_STATUS_IS_OK(status)) {
                if (!NT_STATUS_EQUAL(NT_STATUS_NOT_SUPPORTED, status)) {
                        return status;