]> git.ipfire.org Git - thirdparty/samba.git/commit
vfs_fruit: fix fruit_chmod() for the fruit:resource!=file case
authorRalph Boehme <slow@samba.org>
Fri, 2 Dec 2016 08:02:27 +0000 (09:02 +0100)
committerUri Simchoni <uri@samba.org>
Wed, 1 Mar 2017 23:32:21 +0000 (00:32 +0100)
commit22b509f52ed4de0856432327b3bf78fedcde141b
tree2f4eef4ca4a2acde1707c567dcfe4f2022c01b52
parent6730e1035ba740d0de413256a211937c3bd794e1
vfs_fruit: fix fruit_chmod() 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