Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
81bd8ef7
Commit
81bd8ef7
authored
May 19, 2010
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update_walk: don't check recursive symlinks on WIN32
inode numbers don't work on WIN32, and very few WIN32 users actually use symlinks - seems ok to disable that check.
parent
bedc172e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
update_walk.c
src/update_walk.c
+8
-0
No files found.
src/update_walk.c
View file @
81bd8ef7
...
...
@@ -292,6 +292,7 @@ stat_directory_child(const struct directory *parent, const char *name,
return
ret
;
}
#ifndef G_OS_WIN32
static
int
statDirectory
(
struct
directory
*
dir
)
{
...
...
@@ -304,10 +305,12 @@ statDirectory(struct directory *dir)
return
0
;
}
#endif
static
int
inodeFoundInParent
(
struct
directory
*
parent
,
ino_t
inode
,
dev_t
device
)
{
#ifndef G_OS_WIN32
while
(
parent
)
{
if
(
!
parent
->
stat
&&
statDirectory
(
parent
)
<
0
)
return
-
1
;
...
...
@@ -317,6 +320,11 @@ inodeFoundInParent(struct directory *parent, ino_t inode, dev_t device)
}
parent
=
parent
->
parent
;
}
#else
(
void
)
parent
;
(
void
)
inode
;
(
void
)
device
;
#endif
return
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