Subject: umask

From: Scott Schwartz <[email-masked]>
Date: Thu, 30 Mar 1995 20:14:49 -0500

I run with 022, but some things I'd rather have tighter
control over.  Sam makes temp files at various times that
don't really need to be group or world writable.
Hence this suggestion:

===================================================================
RCS file: RCS/mesg.c,v
retrieving revision 1.1
diff -r1.1 mesg.c
83c83
< 		fd = create("/tmp/sam.out", 1, 0666L);
---
> 		fd = create("/tmp/sam.out", 1, 0600L);
===================================================================
RCS file: RCS/sam.c,v
retrieving revision 1.1
diff -r1.1 sam.c
153c153
< 			io = create(buf, 1, 0777);
---
> 			io = create(buf, 1, 0700);
===================================================================
RCS file: RCS/shell.c,v
retrieving revision 1.1
diff -r1.1 shell.c
37c37
< 			fd = create(errfile, 1, 0666L);
---
> 			fd = create(errfile, 1, 0600L);