Closed darosior closed 4 years ago
Plugining fun fact:
lightningd does umask(0) when daemonizing: https://github.com/ElementsProject/lightning/blob/689dd28dddb062f0366aa3f1addb5602602c68a7/lightningd/lightningd.c#L535-L536
lightningd
umask(0)
So all files created by plugins (started using plugin start) will be 666 and directories 777.. Not really an issue but recall to set umask (at each call) :p .
plugin start
666
777
Hmm so it's only for dynamic plugins, and I think it deserves to be treated upstream not here, closing
Plugining fun fact:
lightningd
doesumask(0)
when daemonizing: https://github.com/ElementsProject/lightning/blob/689dd28dddb062f0366aa3f1addb5602602c68a7/lightningd/lightningd.c#L535-L536So all files created by plugins (started using
plugin start
) will be666
and directories777
.. Not really an issue but recall to set umask (at each call) :p .