Commit f0b2bfe5 by nulltoken

Made gitfo_mkdir_recurs() more tolerant.

Doesn't err any more when the directory already exists.
parent a67a096a
......@@ -313,5 +313,12 @@ int gitfo_dirent(
int gitfo_mkdir_recurs(const char *path, int mode)
{
return gitfo_mkdir(path, mode);
int error;
error = gitfo_mkdir(path, mode);
if (errno == EEXIST)
return GIT_SUCCESS;
return error;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment