OSDN Git Service

mkostemp: fix implementation
[uclinux-h8/uClibc.git] / libc / stdlib / mkdtemp.c
index da7598a..e6d4a36 100644 (file)
@@ -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;