diff options
author | Eric Wong <e@80x24.org> | 2021-10-14 04:32:54 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-10-14 09:07:16 +0000 |
commit | eb0e4dd09d540eb29c71fe1cc92161a13a0b608a (patch) | |
tree | 1051f61a3db1b62dd99d21e67d6e6be00c31611e /script | |
parent | 896c59c925e61caf5d985e8531a35825eeecc99d (diff) | |
download | public-inbox-eb0e4dd09d540eb29c71fe1cc92161a13a0b608a.tar.gz |
While lei is intended for non-public mail and runs umask(077) by default, externals are one area which can safely defer to the user's umask. Instead of sending it unconditionally with every command, only have lei-daemon request it when necessary.
Diffstat (limited to 'script')
-rwxr-xr-x | script/lei | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -122,6 +122,8 @@ while (1) { $exec_cmd->(\@fds, split(/\0/, $1)); } elsif ($buf eq '-WINCH') { kill($buf, @parent); # for MUA + } elsif ($buf eq 'umask') { + send($sock, 'u'.pack('V', umask), MSG_EOR) or die "send: $!" } elsif ($buf =~ /\Ax_it ([0-9]+)\z/) { $x_it_code ||= $1 + 0; last; |