mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Update.
* include/stdio.h: Add new parameter to __path_search. * libio/oldtmpfile.c: Add 0 as new parameter to __path_search. * stdio-common/tmpfile.c: Likewise. * stdio-common/tmpfile64.c: Likewise. * stdio-common/tmpnam.c: Likewise. * stdio-common/tmpnam_r.c: Likewise. * stdio-common/tempnam.c: Add 1 as new parameter to __path_search. * sysdeps/posix/tempname.c: Add new parameter. If value is nonzero consider TMPDIR environment variable and dir parameter. Otherwise not. * stdio-common/Makefile (tests): Add tst-tmpnam. * stdio-common/tst-tmpnam.c: New file.
This commit is contained in:
@ -31,7 +31,7 @@ tempnam (const char *dir, const char *pfx)
|
||||
{
|
||||
char buf[FILENAME_MAX];
|
||||
|
||||
if (__path_search (buf, FILENAME_MAX, dir, pfx))
|
||||
if (__path_search (buf, FILENAME_MAX, dir, pfx, 1))
|
||||
return NULL;
|
||||
|
||||
if (__gen_tempname (buf, 0, 0))
|
||||
|
Reference in New Issue
Block a user