s3: VFS: streams_xattr: Use openat_pathref_fsp() to create a smb_fname->fsp (and...
authorJeremy Allison <jra@samba.org>
Tue, 22 Jun 2021 23:49:11 +0000 (16:49 -0700)
committerRalph Boehme <slow@samba.org>
Fri, 25 Jun 2021 15:53:31 +0000 (15:53 +0000)
commit5f54eb555d0ef5ff332ed635ce2c52625ce74952
tree879e9963f5c3d415c6466180daae93f285daf7a8
parent33521d2df33a4759f61ab0bfc16d9b583c161375
s3: VFS: streams_xattr: Use openat_pathref_fsp() to create a smb_fname->fsp (and the smb_fname->fsp->base_fsp) if the incoming name doesn't have one.

Use new smb_fname->fsp->base_fsp parameter in get_xattr_size(), change name parameter to NULL.

If openat_pathref_fsp() fails, return the correct error code (thanks Ralph!).

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