vfs_fruit: fix fruit_chown() for the fruit:resource!=file case
commit09c82a1ce192112a7264d19f6d8888bad49f6a82
authorRalph Boehme <slow@samba.org>
Fri, 2 Dec 2016 08:04:37 +0000 (2 09:04 +0100)
committerUri Simchoni <uri@samba.org>
Wed, 1 Mar 2017 23:32:21 +0000 (2 00:32 +0100)
tree952d5856c609aff25287aba9cc29f9f319bd005b
parent22b509f52ed4de0856432327b3bf78fedcde141b
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>
source3/modules/vfs_fruit.c