mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
The macOS client creates ._ AppleDouble files for directories that do contain an (empty) resource fork AppleDouble entry. So when going from a Samba server config without streams module (or when migrating data from another server without streams support), to a Samba config with a streams module and vfs_fruit, fruit_streaminfo() will wrongly return the AFP_Resource from the AppleDouble file as stream to the client. To address this, just never return an AFP_Resource stream for directories when listing streams in fruit_streaminfo(). ad_convert(), when configured with fruit:delete_empty_adfiles = true fruit:wipe_intentionally_left_blank_rfork = true will happily discard the AFP_Resource from the AppleDouble file. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15378 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>