From owner-freebsd-audit Sun Jan 16 17:23:58 2000 Delivered-To: freebsd-audit@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 758) id 33DB815055; Sun, 16 Jan 2000 17:23:57 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 275D81CD5CA for ; Sun, 16 Jan 2000 17:23:57 -0800 (PST) (envelope-from kris@hub.freebsd.org) Date: Sun, 16 Jan 2000 17:23:57 -0800 (PST) From: Kris Kennaway To: audit@freebsd.org Subject: File permission in libc/gmon/gmon.c Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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