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
00a4c479
Commit
00a4c479
authored
May 04, 2013
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
p_stat() should follow symlinks on windows
parent
dfec726b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
+12
-1
src/win32/posix_w32.c
+12
-1
No files found.
src/win32/posix_w32.c
View file @
00a4c479
...
@@ -295,7 +295,18 @@ int p_getcwd(char *buffer_out, size_t size)
...
@@ -295,7 +295,18 @@ int p_getcwd(char *buffer_out, size_t size)
int
p_stat
(
const
char
*
path
,
struct
stat
*
buf
)
int
p_stat
(
const
char
*
path
,
struct
stat
*
buf
)
{
{
return
do_lstat
(
path
,
buf
,
0
);
char
target
[
GIT_WIN_PATH
];
int
error
=
0
;
error
=
do_lstat
(
path
,
buf
,
0
);
/* We need not do this in a loop to unwind chains of symlinks since
* p_readlink calls GetFinalPathNameByHandle which does it for us. */
if
(
error
>=
0
&&
S_ISLNK
(
buf
->
st_mode
)
&&
(
error
=
p_readlink
(
path
,
target
,
GIT_WIN_PATH
))
>=
0
)
error
=
do_lstat
(
target
,
buf
,
0
);
return
error
;
}
}
int
p_chdir
(
const
char
*
path
)
int
p_chdir
(
const
char
*
path
)
...
...
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