I was able to build and install a set of .debs including the above patch, thanks to Raphael Hertzog’s fine instructions [2]. However, unfortunately I still have the following error in the logs:
[2020/12/10 22:25:23.078271, 0] ../source3/smbd/dfree.c:125(sys_disk_free) sys_disk_free: VFS disk_free failed. Error was : Invalid or incomplete multibyte or wide character So possibly the patch is insufficient? [1]: https://raphaelhertzog.com/2011/07/04/how-to-prepare-patches-for-debian-packages/