s3/smbd: use smb_fname->fsp for get_ea_list_from_file_path in estimate_ea_size()
commit5cbab2ebfdad88080c060730979725f2c6fa40cc
authorNoel Power <npower@quick-trouble.localdomain>
Fri, 29 Jan 2021 14:54:47 +0000 (29 14:54 +0000)
committerJeremy Allison <jra@samba.org>
Fri, 26 Feb 2021 21:28:33 +0000 (26 21:28 +0000)
tree787bd695f0db2239fa10ac6da2e4cb1bca9b9cfe
parentdfc80b4ce80a42e0c402ee7ba23e3cd2ad3ae279
s3/smbd: use smb_fname->fsp for get_ea_list_from_file_path in estimate_ea_size()

Additionally ensure get_ea_list_from_file_path is called with base file.

Previously fsp was set to NULL if fsp pointed to a ntfs stream which in
turn ensured that 'base_path' from the smb_fname was used (which points
to the base file). Now we get a pathref fsp (pointing to the base file)
instead

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