summaryrefslogtreecommitdiff
path: root/libc/stdlib/mkostemp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib/mkostemp.c')
-rw-r--r--libc/stdlib/mkostemp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdlib/mkostemp.c b/libc/stdlib/mkostemp.c
index 912be30a6..4eab0797a 100644
--- a/libc/stdlib/mkostemp.c
+++ b/libc/stdlib/mkostemp.c
@@ -28,5 +28,5 @@ int
mkostemp (char *template, int flags)
{
flags -= flags & O_ACCMODE; /* Remove O_RDONLY, O_WRONLY, and O_RDWR. */
- return __gen_tempname (template, __GT_FILE, flags, S_IRUSR | S_IWUSR);
+ return __gen_tempname (template, __GT_FILE, flags, 0, S_IRUSR | S_IWUSR);
}