summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-07-15 18:46:26 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-07-15 18:46:26 +0000
commit5619d549cdb1feff11943e1ebdc4704f5890a13e (patch)
treebf1796ce01edc8e6e76075a276fa316fa1f0e962 /lib/libc
parent7b3fa100f994425eb4d70a40df0d80427eab91db (diff)
open gmon.out mode 0644, not 0666
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gmon/gmon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gmon/gmon.c b/lib/libc/gmon/gmon.c
index ef38e9484f8..9579d65cf2f 100644
--- a/lib/libc/gmon/gmon.c
+++ b/lib/libc/gmon/gmon.c
@@ -32,7 +32,7 @@
*/
#if !defined(lint) && defined(LIBC_SCCS)
-static char rcsid[] = "$OpenBSD: gmon.c,v 1.9 1998/07/05 18:36:52 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: gmon.c,v 1.10 1998/07/15 18:46:25 millert Exp $";
#endif
#include <sys/param.h>
@@ -212,7 +212,7 @@ _mcleanup()
proffile = "gmon.out";
}
- fd = open(proffile , O_CREAT|O_TRUNC|O_WRONLY, 0666);
+ fd = open(proffile , O_CREAT|O_TRUNC|O_WRONLY, 0644);
if (fd < 0) {
perror( proffile );
return;