about summary refs log tree commit diff
path: root/libio/oldtmpfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/oldtmpfile.c')
-rw-r--r--libio/oldtmpfile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libio/oldtmpfile.c b/libio/oldtmpfile.c
index a6a5e71ae5..3c3af9c3ad 100644
--- a/libio/oldtmpfile.c
+++ b/libio/oldtmpfile.c
@@ -37,7 +37,9 @@ __old_tmpfile (void)
 
   if (__path_search (buf, FILENAME_MAX, NULL, "tmpf", 0))
     return NULL;
-  fd = __gen_tempname (buf, 0, 0, __GT_FILE);
+
+  int flags_and_mode[2] = { 0, 0 };
+  fd = __gen_tempname (buf, 0, &__gen_tempname_try_file, __GT_FILE_DEFAULTS);
   if (fd < 0)
     return NULL;