Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jan 2000 17:23:57 -0800 (PST)
From:      Kris Kennaway <kris@hub.freebsd.org>
To:        audit@freebsd.org
Subject:   File permission in libc/gmon/gmon.c
Message-ID:  <Pine.BSF.4.21.0001161723380.18027-100000@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
Index: gmon/gmon.c
===================================================================
RCS file: /home/ncvs/src/lib/libc/gmon/gmon.c,v
retrieving revision 1.7
diff -u -r1.7 gmon.c
--- gmon/gmon.c	2000/01/12 09:23:21	1.7
+++ gmon/gmon.c	2000/01/17 01:22:43
@@ -172,7 +172,7 @@
 
 	moncontrol(0);
 	snprintf(outname,sizeof(outname),"%s.gmon",__progname);
-	fd = _libc_open(outname, O_CREAT|O_TRUNC|O_WRONLY, 0666);
+	fd = _libc_open(outname, O_CREAT|O_TRUNC|O_WRONLY, 0664);
 	if (fd < 0) {
 		warnx("_mcleanup: %s - %s",outname,strerror(errno));
 		return;

----
"How many roads must a man walk down, before you call him a man?"
"Eight!"
"That was a rhetorical question!"
"Oh..then, seven!" -- Homer Simpson



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0001161723380.18027-100000>