From owner-cvs-all Tue Oct 20 06:26:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA16783 for cvs-all-outgoing; Tue, 20 Oct 1998 06:26:36 -0700 (PDT) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.15.68.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA16724; Tue, 20 Oct 1998 06:24:28 -0700 (PDT) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id XAA03509; Tue, 20 Oct 1998 23:24:01 +1000 Date: Tue, 20 Oct 1998 23:24:01 +1000 From: Bruce Evans Message-Id: <199810201324.XAA03509@godzilla.zeta.org.au> To: cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, peter@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/stdio mktemp.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > Modified files: > lib/libc/stdio mktemp.c > Log: > Stop mk*temp() from being pathologically stupid in the face of a umask(0); 0777 > There are other ways to fix this than wrapping _gettemp(), but this was > the most convenient. Erm, why shouldn't it honour the umask? stdio still honours the umask in all other places. For fopen(), this is actually documented in fopen.3, and is sort of specified by POSIX.1 for fopen(): "the fopen() function shall allocate a file descriptor as open() does". Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message