mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 08:11:08 +00:00
[BZ #4588]
* stdio-common/tempnam.c: Fix comment, it is not checked that TMPDIR points to a writable directory.
This commit is contained in:
parent
0f8f993cef
commit
7d55c9eb43
@ -1,5 +1,9 @@
|
|||||||
2007-08-21 Ulrich Drepper <drepper@redhat.com>
|
2007-08-21 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
[BZ #4588]
|
||||||
|
* stdio-common/tempnam.c: Fix comment, it is not checked that
|
||||||
|
TMPDIR points to a writable directory.
|
||||||
|
|
||||||
[BZ #4726]
|
[BZ #4726]
|
||||||
* resolv/res_send.c (__libc_res_nsend): Initialize all of the
|
* resolv/res_send.c (__libc_res_nsend): Initialize all of the
|
||||||
memory allocated for the name server address.
|
memory allocated for the name server address.
|
||||||
|
@ -19,13 +19,13 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
/* Generate a unique temporary filename using up to five characters of PFX
|
/* Generate a unique temporary filename using up to five characters of
|
||||||
if it is not NULL. The directory to put this file in is searched for
|
PFX if it is not NULL. The directory to put this file in is
|
||||||
as follows: First the environment variable "TMPDIR" is checked.
|
searched for as follows: First the environment variable "TMPDIR" is
|
||||||
If it contains the name of a writable directory, that directory is used.
|
checked. If it contains the name of a directory, that directory is
|
||||||
If not and if DIR is not NULL, that value is checked. If that fails,
|
used. If not and if DIR is not NULL, that value is checked. If
|
||||||
P_tmpdir is tried and finally "/tmp". The storage for the filename
|
that fails, P_tmpdir is tried and finally "/tmp". The storage for
|
||||||
is allocated by `malloc'. */
|
the filename is allocated by `malloc'. */
|
||||||
char *
|
char *
|
||||||
tempnam (const char *dir, const char *pfx)
|
tempnam (const char *dir, const char *pfx)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user