diff options
Diffstat (limited to 'src/local/pager.nim')
-rw-r--r-- | src/local/pager.nim | 4 |
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() = |