vfs_streams_xattr: use fsp, not base_fsp
authorRalph Boehme <slow@samba.org>
Fri, 17 Feb 2017 07:10:53 +0000 (08:10 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 22 Feb 2017 07:25:46 +0000 (08:25 +0100)
commit021189e32ba507832b5e821e5cda8a2889225955
tree1a4eb475f81e4ef992a2e8a1e894e70a07db8fd8
parentbed19f3744a4193bed1ea99debfb6263feb78b6c
vfs_streams_xattr: use fsp, not base_fsp

The base_fsp's fd is always -1 as it's closed after being openend in
create_file_unixpath().

Additionally in streams_xattr_open force using of SMB_VFS_FSETXATTR() by
sticking the just created fd into the fsp (and removing it afterwards).

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12591

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Feb 22 08:25:46 CET 2017 on sn-devel-144
source3/modules/vfs_streams_xattr.c