umask/permissions on new files created via notmuch-insert(1) ?

Daniel Kahn Gillmor dkg at fifthhorseman.net
Sun Feb 4 11:25:23 PST 2018


during some maintenance work today, bremner and i noticed that message
delivery via "notmuch insert" creates files that are stricter than the
umask.

using notmuch 0.23.6, with umask 027, "notmuch insert" created files
with mode 0600.  i would have expected 0640.

using strace, i don't see notmuch invoking any system calls to umask()
or chmod() so i'm not sure how these permissions are getting set in the
first place.

is there a reason that "notmuch insert" should be stricter than the
umask?  does this ring any bells for people?

        --dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20180204/5cfc8020/attachment.sig>


More information about the notmuch mailing list