Make error files private. - sam - An updated version of the sam text editor.
 (HTM) git clone git://vernunftzentrum.de/sam.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 54cab828288a602a302fc981b4e9a1f2d3d42e38
 (DIR) parent 107d59adec9936d63ab3ca7e508911343473f6da
 (HTM) Author: Rob King <jking@deadpixi.com>
       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(-)
       ---
 (DIR) 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 */