Created attachment 371624 [details, diff] ebuild patch ebuild patch, and additional patch attached.
Created attachment 371626 [details, diff] FreeMiNT patch for files/ directory.
This has to go in Gentoo Linux. Is there an upstream reference for the patch?
Yes. https://bugzilla.samba.org/show_bug.cgi?id=10483