Skip to content

Commit 541b8fc

Browse files
authored
Merge pull request libgit2#5302 from tiennou/fix/p_lstat-errno
fileops: correct error return on p_lstat failures when mkdir
2 parents 01ea911 + 0c2b020 commit 541b8fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/futils.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ int git_futils_mkdir(
476476
break;
477477
} else if (errno != ENOENT) {
478478
git_error_set(GIT_ERROR_OS, "failed to stat '%s'", parent_path.ptr);
479+
error = -1;
479480
goto done;
480481
}
481482

0 commit comments

Comments
 (0)