forked from enlightenment/efl
evil: fix mistaken check of returned value by mkdir.
mkdir succeed with return == 0 ! @fix
This commit is contained in:
parent
8c61dd268f
commit
5080dc4dff
|
@ -333,7 +333,7 @@ mkdtemp(char *__template)
|
|||
{
|
||||
val = _mkstemp(suffix, val);
|
||||
|
||||
if (mkdir(__template))
|
||||
if (mkdir(__template) == 0)
|
||||
return __template;
|
||||
|
||||
if (errno == EFAULT ||
|
||||
|
|
Loading…
Reference in New Issue