summaryrefslogtreecommitdiff
path: root/libc/stdlib/mkstemp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib/mkstemp.c')
-rw-r--r--libc/stdlib/mkstemp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdlib/mkstemp.c b/libc/stdlib/mkstemp.c
index a3a159590..abcc93e62 100644
--- a/libc/stdlib/mkstemp.c
+++ b/libc/stdlib/mkstemp.c
@@ -26,5 +26,5 @@
Then open the file and return a fd. */
int mkstemp (char *template)
{
- return __gen_tempname (template, __GT_FILE, 0, S_IRUSR | S_IWUSR);
+ return __gen_tempname (template, __GT_FILE, 0, 0, S_IRUSR | S_IWUSR);
}