Date: Tue, 20 Oct 1998 23:24:01 +1000 From: Bruce Evans <bde@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 Message-ID: <199810201324.XAA03509@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810201324.XAA03509>
