vfs_fruit: make call to ad_convert_truncate() optional
authorRalph Boehme <slow@samba.org>
Mon, 8 Oct 2018 16:47:32 +0000 (18:47 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 10 Oct 2018 20:22:15 +0000 (22:22 +0200)
commit9cf087a474bb2d7d29ca0daeaef412f6b545d0e0
tree7506e2dfea1e3967f15897d160cb164bba61035e
parentacb72c1ea7fecc9a7e8eb0219096b1bbdfd8850e
vfs_fruit: make call to ad_convert_truncate() optional

Call ad_convert_truncate() based on whether the previous call
ad_convert_xattr() returned converted_xattr=true.

Upcoming fixes for a different Samba bug (#13642) will hook into calling
ad_convert_truncate() in other cases, this also prepares for that.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13649

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_fruit.c