The Samba-Bugzilla – Bug 13181
Fail to copy file with empty FinderInfo from Windows client to Samba share with fruit
Last modified: 2017-12-07 19:08:50 UTC
Alas, a Mac client wouldn't do this, but what can you do?
Currently when the client sends a AFP_AfpInfo stream where the contained FinderInfo blob is all 0, vfs_fruit will somewhat hackish delete the stream from the backing store. This causes subsequent operations on the same filehandle to fail for certain operations, also depending on the setting of fruit:metadata.
The correct implementation of the stream removal would be setting delete-on-close on the filehandle, while at the same time checking in delete-on-close is set in the stream-listing function.
Have patch, need bugnumber.