]> Sergey Matveev's repositories - public-inbox.git/commit
lei: ensure we run a restrictive umask
authorEric Wong <e@80x24.org>
Wed, 16 Dec 2020 05:59:41 +0000 (05:59 +0000)
committerEric Wong <e@80x24.org>
Sat, 19 Dec 2020 09:32:08 +0000 (09:32 +0000)
commite605ec76c5a3afe9390ca95709fed719a098235a
tree9ce80a399e79a821bd4ecbb4db12b273bbd0bef6
parent671d4e711d4a20dfb987b273d08e73e5add37f1d
lei: ensure we run a restrictive umask

While we configure the LeiStore git repos and DBs to have a
restrictive umask, lei may also write to Maildirs/mboxes/etc.

We will follow mutt behavior when saving files/messages to the FS.
We only want to create files which are only readable by the local
user since this is intended for private mail and could be used
on shared systems.

We may allow passing the umask on a per-command-basis, but it's
probably not worth the effort to support.
lib/PublicInbox/LeiDaemon.pm