From: Samuel Cabrero Date: Thu, 13 May 2021 11:17:19 +0000 (+0200) Subject: s3: smbd: Switch from SMB_VFS_READDIR_ATTR() to SMB_VFS_FREADDIR_ATTR() X-Git-Tag: tevent-0.11.0~879 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=289b9b1382cf62f5ce7d3ac384276da4ab12d733;p=thirdparty%2Fsamba.git s3: smbd: Switch from SMB_VFS_READDIR_ATTR() to SMB_VFS_FREADDIR_ATTR() Signed-off-by: Samuel Cabrero Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 8075a7f60f4..7977468bd95 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -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;