mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-22 19:19:41 +00:00
Made gitfo_mkdir_recurs() more tolerant.
Doesn't err any more when the directory already exists.
This commit is contained in:
parent
a67a096a9e
commit
f0b2bfe527
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user