vfs_fruit: fix fruit_rename() for the fruit:resource!=file case
commit6f43b66cbcdfc68e5546e2b79f0a2ba15e6c6b78
authorRalph Boehme <slow@samba.org>
Fri, 2 Dec 2016 07:47:36 +0000 (2 08:47 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 6 Mar 2017 18:40:20 +0000 (6 19:40 +0100)
treeb823e433b392725efcc6f92775f385ff82fa1c4b
parenta72ad4fa320e3faff6166e30de3f7073a5afc5e2
vfs_fruit: fix fruit_rename() for the fruit:resource!=file case

o fix the config check, we must only run following code for the
  fruit:resource=file

o properly call SMB_VFS_NEXT_RENAME() instead diretly calling rename()

o bail out if we get an invalid stat

Otherwise, no change in behaviour.

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>
(cherry picked from commit 8a9d0c541875d06254dc3a3039b20c8acac328ed)
source3/modules/vfs_fruit.c