mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-21 14:39:10 +00:00
Revert "Work around reparse point stat issues"
This reverts commit 32c12ea6a9
.
This commit is contained in:
parent
eddc1f1ed7
commit
022a45e084
@ -350,8 +350,7 @@ int git_futils_mkdir(
|
|||||||
int tmp_errno = errno;
|
int tmp_errno = errno;
|
||||||
|
|
||||||
/* ignore error if directory already exists */
|
/* ignore error if directory already exists */
|
||||||
if (p_stat(make_path.ptr, &st) < 0 ||
|
if (p_stat(make_path.ptr, &st) < 0 || !S_ISDIR(st.st_mode)) {
|
||||||
!(S_ISDIR(st.st_mode) || S_ISLNK(st.st_mode))) {
|
|
||||||
errno = tmp_errno;
|
errno = tmp_errno;
|
||||||
giterr_set(GITERR_OS, "Failed to make directory '%s'", make_path.ptr);
|
giterr_set(GITERR_OS, "Failed to make directory '%s'", make_path.ptr);
|
||||||
goto done;
|
goto done;
|
||||||
|
Loading…
Reference in New Issue
Block a user