Introduction
Introduction Statistics Contact Development Disclaimer Help
Make error files private. - sam - An updated version of the sam text editor.
git clone git://vernunftzentrum.de/sam.git
Log
Files
Refs
LICENSE
---
commit 54cab828288a602a302fc981b4e9a1f2d3d42e38
parent 107d59adec9936d63ab3ca7e508911343473f6da
Author: Rob King <[email protected]>
Date: Fri, 23 Sep 2016 09:28:03 -0500
Make error files private.
Credit for this patch goes to Tommy Pettersson.
Diffstat:
sam/shell.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sam/shell.c b/sam/shell.c
@@ -36,9 +36,9 @@ plan9(File *f, int type, String *s, int nest)
remove(errfile);
if((pid=fork()) == 0){
if(downloaded){ /* also put nasty fd's into errfile */
- fd = create(errfile, 1, 0666L);
+ fd = create(errfile, 1, 0600L);
if(fd < 0)
- fd = create("/dev/null", 1, 0666L);
+ fd = create("/dev/null", 1, 0600L);
dup(fd, 2);
close(fd);
/* 2 now points at err file */
You are viewing proxied material from vernunftzentrum.de. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.