[Samba] Fruit encoding issue in 4.15.5

Perttu Aaltonen perttu.aaltonen at mac.com
Thu Mar 10 15:57:35 UTC 2022

> On 10. Mar 2022, at 17.53, Ralph Boehme <slow at samba.org> wrote:
> On 3/10/22 16:14, Perttu Aaltonen wrote:
>> I did some more digging and looks like the problem is the interaction
>> between "fruit:encoding = native” and "fruit:delete_empty_adfiles =
>> yes”.
>> If encoding is ‘native' and delete_empty_adfiles if ‘yes’, the
>> '._Icon'$'\r’ file is deleted from the folder. After setting encoding
>> to ‘private’ the '._Icon’ file is retained.
>> The documentation says:
>> “fruit:delete_empty_adfiles = yes | no Whether to delete empty
>> AppleDouble files. Empty means that the resource fork entry in the
>> AppleDouble files is of size 0, or the size is exactly 286 bytes and
>> the content matches a special boilerplate resource fork created my
>> macOS.”
>> The icon file will vary in size so setting ‘native’ seems to
>> erroneously remove it. I tested with 4.13.7 and 4.15.5.
> wow, interesting bug! :) Can you please file a bug so we can track this?
> Thanks!
> -slow

Will do! By the way, is there a reference somewhere about the pros and cons of using fruit encoding native versus private? Most examples seem to use native but why is private the default and what’s the downside?


More information about the samba mailing list