vfs_streams_xattr: use SMB_VFS_NEXT_OPEN and CLOSE
authorRalph Boehme <slow@samba.org>
Wed, 8 Feb 2017 18:16:21 +0000 (19:16 +0100)
committerUri Simchoni <uri@samba.org>
Wed, 1 Mar 2017 23:32:20 +0000 (00:32 +0100)
commit4e2c7d0ec45adf5992446e3e05c90dd40c2fd75b
tree382cffc62c64d8f7de9a2f75175708d750f058ea
parent8035754c28c1a469de4fac77247ef7e5a1d8b463
vfs_streams_xattr: use SMB_VFS_NEXT_OPEN and CLOSE

Using the SMB_VFS_OPEN leads to a recursion in the VFS that is hard to
follow and debug. It's called twice for the same fsp with two different
smb_fname's which makes it at least hard to debug, it may even be an
invalid usage.

Changing this here to use the NEXT function instead should have no
change in behaviour otherwise.

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
source3/modules/vfs_streams_xattr.c