]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/smbd: call get_ea_list_from_file with smb_fname->fsp
authorNoel Power <npower@quick-trouble.localdomain>
Fri, 29 Jan 2021 18:54:20 +0000 (18:54 +0000)
committerJeremy Allison <jra@samba.org>
Fri, 26 Feb 2021 21:28:33 +0000 (21:28 +0000)
A step to transition away from using smb_fname & fsp
paramater combination with this function.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/trans2.c

index f9ef056b73663b249eaef6d95705aac73ab38ca9..6ac33f8e0b639feadb9129a43795ef515abe4812 100644 (file)
@@ -1997,7 +1997,8 @@ static NTSTATUS smbd_marshall_dir_entry(TALLOC_CTX *ctx,
                SSVAL(p,20,mode);
                p += 22; /* p now points to the EA area. */
 
-               status = get_ea_list_from_file(ctx, conn, NULL,
+               status = get_ea_list_from_file(ctx, conn,
+                                              smb_fname->fsp,
                                               smb_fname,
                                               &ea_len, &file_list);
                if (!NT_STATUS_IS_OK(status)) {