Found in the wild: a Windows client tries to copy some file to a vfs_fruit enabled Samba share and the copy fails when the client tries to write 64 bytes to the AFP_AfpInfo stream. It's unclear *why* the client does this, but testing against a macOS SMB server shows that this works there. The server just ignores the extra 4 bytes.
Created attachment 14640 [details] Patch for 4.8 backported from master
Created attachment 14641 [details] Patch for 4.9 cherry-picked from master
Re-assigning to Karolin for inclusion in 4.9.next,4.8.next.
(In reply to Jeremy Allison from comment #3) Pushed to autobuild-v4-{9,8}-test.
Created attachment 14663 [details] Follow-up patch Follow-up patch to fix the 32-bit build.
(In reply to Karolin Seeger from comment #5) Pushed to autobuild-v4-{9,8}-test.
(In reply to Karolin Seeger from comment #6) Pushed to both branches. Closing out bug report. Thanks!