Skip to content

Commit

Permalink
resolver: don't fail if directory already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
atmaxinger committed May 29, 2023
1 parent 91bf3ea commit 2b3b7dd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/plugins/resolver/resolver.c
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,12 @@ static int elektraMkdirParents (resolverHandle * pk, const char * pathname, Key
{
if (mkdir (pathname, pk->dirmode) == -1)
{
if (errno == EEXIST)
{
// already exists
return 0;
}

if (errno != ENOENT)
{
// hopeless, give it up
Expand Down

0 comments on commit 2b3b7dd

Please sign in to comment.