summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Strickroth <email@cs-ware.de>2013-06-25 16:43:15 +0200
committerSven Strickroth <email@cs-ware.de>2013-06-25 16:43:15 +0200
commit022a45e0848d4cc517889aaf55573bf5f5004662 (patch)
treed0778972bd26f7b11f0d2a757b1c4c73018605d0
parenteddc1f1ed78898a4ca41480045b1d0d5b075e773 (diff)
downloadlibgit2-022a45e0848d4cc517889aaf55573bf5f5004662.tar.gz
Revert "Work around reparse point stat issues"
This reverts commit 32c12ea6a9cafd76a746af2e2be9366c95752f5b.
-rw-r--r--src/fileops.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fileops.c b/src/fileops.c
index d5f6acfad..1f58fa5cd 100644
--- a/src/fileops.c
+++ b/src/fileops.c
@@ -350,8 +350,7 @@ int git_futils_mkdir(
int tmp_errno = errno;
/* ignore error if directory already exists */
- if (p_stat(make_path.ptr, &st) < 0 ||
- !(S_ISDIR(st.st_mode) || S_ISLNK(st.st_mode))) {
+ if (p_stat(make_path.ptr, &st) < 0 || !S_ISDIR(st.st_mode)) {
errno = tmp_errno;
giterr_set(GITERR_OS, "Failed to make directory '%s'", make_path.ptr);
goto done;