|
@@ -29,10 +29,9 @@
|
|
|
(This function comes from OpenBSD.) */
|
|
|
char * mkdtemp (char *template)
|
|
|
{
|
|
|
- if (__gen_tempname (template, __GT_DIR))
|
|
|
- /* We return the null string if we can't find a unique file name. */
|
|
|
- template[0] = '\0';
|
|
|
-
|
|
|
+ if (__gen_tempname (template, __GT_DIR))
|
|
|
+ return NULL;
|
|
|
+ else
|
|
|
return template;
|
|
|
}
|
|
|
#endif
|