File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -350,8 +350,7 @@ int git_futils_mkdir(
350
350
int tmp_errno = errno ;
351
351
352
352
/* ignore error if directory already exists */
353
- if (p_stat (make_path .ptr , & st ) < 0 ||
354
- !(S_ISDIR (st .st_mode ) || S_ISLNK (st .st_mode ))) {
353
+ if (p_stat (make_path .ptr , & st ) < 0 || !S_ISDIR (st .st_mode )) {
355
354
errno = tmp_errno ;
356
355
giterr_set (GITERR_OS , "Failed to make directory '%s'" , make_path .ptr );
357
356
goto done ;
Original file line number Diff line number Diff line change @@ -90,6 +90,9 @@ static int do_lstat(
90
90
if (fdata .dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT )
91
91
fMode |= S_IFLNK ;
92
92
93
+ if ((fMode & (S_IFDIR | S_IFLNK )) == (S_IFDIR | S_IFLNK )) // junction
94
+ fMode ^= S_IFLNK ;
95
+
93
96
buf -> st_ino = 0 ;
94
97
buf -> st_gid = 0 ;
95
98
buf -> st_uid = 0 ;
You can’t perform that action at this time.
0 commit comments