# Allow tmpfile(3) to use $TMPDIR. diff -uprk.orig glibc-2.3.5.orig/glibc-compat/oldtmpfile.c glibc-2.3.5/glibc-compat/oldtmpfile.c --- glibc-2.3.5.orig/glibc-compat/oldtmpfile.c 2004-09-22 21:20:48 +0000 +++ glibc-2.3.5/glibc-compat/oldtmpfile.c 2005-05-08 22:05:09 +0000 @@ -32,7 +32,7 @@ __old_tmpfile (void) int fd; FILE *f; - if (__path_search (buf, FILENAME_MAX, NULL, "tmpf", 0)) + if (__path_search (buf, FILENAME_MAX, NULL, "tmpf", 1)) return NULL; fd = __gen_tempname (buf, 1, 0); if (fd < 0) diff -uprk.orig glibc-2.3.5.orig/libio/oldtmpfile.c glibc-2.3.5/libio/oldtmpfile.c --- glibc-2.3.5.orig/libio/oldtmpfile.c 2004-03-10 09:28:25 +0000 +++ glibc-2.3.5/libio/oldtmpfile.c 2004-03-10 09:28:25 +0000 @@ -36,7 +36,7 @@ __old_tmpfile (void) int fd; FILE *f; - if (__path_search (buf, FILENAME_MAX, NULL, "tmpf", 0)) + if (__path_search (buf, FILENAME_MAX, NULL, "tmpf", 1)) return NULL; fd = __gen_tempname (buf, __GT_FILE); if (fd < 0) diff -uprk.orig glibc-2.3.5.orig/sysdeps/generic/tmpfile.c glibc-2.3.5/sysdeps/generic/tmpfile.c --- glibc-2.3.5.orig/sysdeps/generic/tmpfile.c 2003-09-02 07:13:21 +0000 +++ glibc-2.3.5/sysdeps/generic/tmpfile.c 2003-09-02 07:13:21 +0000 @@ -43,7 +43,7 @@ tmpfile (void) int fd; FILE *f; - if (__path_search (buf, FILENAME_MAX, NULL, "tmpf", 0)) + if (__path_search (buf, FILENAME_MAX, NULL, "tmpf", 1)) return NULL; fd = __gen_tempname (buf, GEN_THIS); if (fd < 0)