vfs_fruit: use SMB_VFS_NEXT_OPEN in two places
authorRalph Boehme <slow@samba.org>
Wed, 8 Feb 2017 18:15:38 +0000 (19:15 +0100)
committerUri Simchoni <uri@samba.org>
Wed, 1 Mar 2017 23:32:21 +0000 (00:32 +0100)
commit3e2a7f6227204e932a8337fe77cdda22d28f85f6
tree68855bbdc17619a179fb08fe6791526a9187ed52
parentad8a3b6971945fbceeef8763613a9e5f5a475098
vfs_fruit: use SMB_VFS_NEXT_OPEN in two places

Using the SMB_VFS_OPEN leads to a logic recursion that is hard to follow
and debug. It may be called twice for the same fsp with two different
smb_fname's.

Changing this here to use the NEXT function instead should have no
change in behaviour otherwise, but it allows adding sane caching to
vfs_catia to handle based VFS ops.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12427

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