summaryrefslogtreecommitdiff
path: root/libc/stdlib/mkdtemp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib/mkdtemp.c')
-rw-r--r--libc/stdlib/mkdtemp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdlib/mkdtemp.c b/libc/stdlib/mkdtemp.c
index da7598a6f..e6d4a364c 100644
--- a/libc/stdlib/mkdtemp.c
+++ b/libc/stdlib/mkdtemp.c
@@ -29,7 +29,7 @@
(This function comes from OpenBSD.) */
char * mkdtemp (char *template)
{
- if (__gen_tempname (template, __GT_DIR, S_IRUSR | S_IWUSR | S_IXUSR))
+ if (__gen_tempname (template, __GT_DIR, 0, S_IRUSR | S_IWUSR | S_IXUSR))
return NULL;
else
return template;