about summary refs log tree commit diff
path: root/stdio-common/tmpfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/tmpfile.c')
-rw-r--r--stdio-common/tmpfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stdio-common/tmpfile.c b/stdio-common/tmpfile.c
index 022c2f650b..89689a625f 100644
--- a/stdio-common/tmpfile.c
+++ b/stdio-common/tmpfile.c
@@ -44,7 +44,8 @@ tmpfile (void)
 #ifdef FLAGS
   flags = FLAGS;
 #endif
-  fd = __gen_tempname (buf, 0, flags, __GT_FILE);
+  fd = __gen_tempname (buf, 0, &__gen_tempname_try_file,
+                       &((int[2]) { flags, S_IRUSR | S_IWUSR }));
   if (fd < 0)
     return NULL;