vfs_fruit: fix fruit_chown() for the fruit:resource!=file case
commite59e603c0a86f0438d08ede8aa426d6d672626b4
authorRalph Boehme <slow@samba.org>
Fri, 2 Dec 2016 08:04:37 +0000 (2 09:04 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 6 Mar 2017 18:40:20 +0000 (6 19:40 +0100)
tree3d4f1c32b4d6139075e9bed9bb998a4874678379
parent66c0572e912fdd2d35898ebf2bc55241113738f5
vfs_fruit: fix fruit_chown() for the fruit:resource!=file case

The following code must only be executed for the fruit:resource=file
case.

While at it, remove an unnecessary lstat, use the stat info from
smb_fname.

Otherwise no change in behaviour for the fruit:resource=file case (the
default).

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 09c82a1ce192112a7264d19f6d8888bad49f6a82)
source3/modules/vfs_fruit.c