Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
22ef0c28
Commit
22ef0c28
authored
Jun 25, 2013
by
Russell Belfer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1680 from csware/win32-junction
Correctly handle win32 junctions
parents
eddc1f1e
47537112
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
src/fileops.c
+1
-2
src/win32/posix_w32.c
+3
-0
No files found.
src/fileops.c
View file @
22ef0c28
...
...
@@ -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
;
...
...
src/win32/posix_w32.c
View file @
22ef0c28
...
...
@@ -90,6 +90,9 @@ static int do_lstat(
if
(
fdata
.
dwFileAttributes
&
FILE_ATTRIBUTE_REPARSE_POINT
)
fMode
|=
S_IFLNK
;
if
((
fMode
&
(
S_IFDIR
|
S_IFLNK
))
==
(
S_IFDIR
|
S_IFLNK
))
// junction
fMode
^=
S_IFLNK
;
buf
->
st_ino
=
0
;
buf
->
st_gid
=
0
;
buf
->
st_uid
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment