about summary refs log tree commit homepage
path: root/script
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-09-17 07:12:30 -0500
committerEric Wong <e@80x24.org>2021-09-17 21:49:42 +0000
commit3ba7362f0bf1bef8ddc76cd311576d9348a94fe0 (patch)
treecafc392e819d244eab9c4db83d5c55d889e76932 /script
parent876e74283ff36462607626dec2105e28f2db9bb7 (diff)
downloadpublic-inbox-3ba7362f0bf1bef8ddc76cd311576d9348a94fe0.tar.gz
While my MUA also runs umask(077) unconditionally, not all
MUAs do.  Additionally, pagers may support writing its buffer
to disk, so ensure anything else we spawn has umask(077).
Diffstat (limited to 'script')
-rwxr-xr-xscript/lei1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/lei b/script/lei
index 2d84487a..591013e3 100755
--- a/script/lei
+++ b/script/lei
@@ -53,6 +53,7 @@ my $exec_cmd = sub {
                 }
                 my %env = map { split(/=/, $_, 2) } splice(@argv, $argc);
                 @ENV{keys %env} = values %env;
+                umask 077;
                 exec(@argv);
                 warn "exec: @argv: $!\n";
                 POSIX::_exit(1);