about summary refs log tree commit diff stats
path: root/src/local/pager.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-10 22:55:08 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-10 23:04:27 +0100
commitd961fa11e2841cddaca1ca01fe8625bc6d17929c (patch)
tree12f2d7d317b47b6d3cef6f3f9e0953db39cd1ab2 /src/local/pager.nim
parentc4f0423e1a786fef840fd2f8c5c6bba550b353ab (diff)
downloadchawan-d961fa11e2841cddaca1ca01fe8625bc6d17929c.tar.gz
pager: use 644 mask for mailcap temp files
Diffstat (limited to 'src/local/pager.nim')
-rw-r--r--src/local/pager.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/local/pager.nim b/src/local/pager.nim
index 4a94034e..9633293a 100644
--- a/src/local/pager.nim
+++ b/src/local/pager.nim
@@ -1022,7 +1022,7 @@ proc runMailcapWritePipe(pager: Pager, container: Container,
 # needsterminal is ignored.
 proc runMailcapReadFile(pager: Pager, container: Container,
     entry: MailcapEntry, cmd, outpath: string): (EmptyPromise, bool) =
-  let fd = open(outpath, O_WRONLY or O_CREAT, 0o666)
+  let fd = open(outpath, O_WRONLY or O_CREAT, 0o644)
   if fd == -1:
     return (nil, false)
   let p = container.redirectToFd(fd, wait = true).then(proc(): auto =
@@ -1056,7 +1056,7 @@ proc runMailcapReadFile(pager: Pager, container: Container,
 proc runMailcapWriteFile(pager: Pager, container: Container,
     entry: MailcapEntry, cmd, outpath: string): (EmptyPromise, bool) =
   let needsterminal = NEEDSTERMINAL in entry.flags
-  let fd = open(outpath, O_WRONLY or O_CREAT, 0o666)
+  let fd = open(outpath, O_WRONLY or O_CREAT, 0o644)
   if fd == -1:
     return (nil, false)
   let p = container.redirectToFd(fd, wait = true).then(proc() =