Created attachment 242439 [details] Patch to add umask setting Hi, We use syncthing at work for various files and it is useful to control the umask, unfortunately this doesn't seem possible via daemon (I tried that first - https://reviews.freebsd.org/D20969 - something resets it and I couldn't work out what). I tried getting this patch upstreamed (https://github.com/syncthing/syncthing/pull/5857) but they were not interested (for reasonable reasons I suppose).
adding Ihor to cc, who is currently working on daemon bugs
I agree with the syncthing Github issue: this is better handled by the startup scripts (if it can be) than within the code or with daemon. However, I don't know how to achieve this within the rc.d scripts for syncthing.
seems to be relatively straightforward. I will add it to my backlog