aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-05-19 07:48:52 +0200
committerMax Kellermann <max@duempel.org>2010-05-19 11:36:07 +0200
commit81bd8ef73cac8fa399011cb65d6f32df6e24b4b2 (patch)
tree54bfa77d6da61b00bf998e55923fc193987322c8 /src
parentbedc172eab6c859093d096546b6836f79c90e974 (diff)
downloadmpd-81bd8ef73cac8fa399011cb65d6f32df6e24b4b2.tar.gz
mpd-81bd8ef73cac8fa399011cb65d6f32df6e24b4b2.tar.xz
mpd-81bd8ef73cac8fa399011cb65d6f32df6e24b4b2.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/update_walk.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/update_walk.c b/src/update_walk.c
index 192e8830e..b8c740ae0 100644
--- a/src/update_walk.c
+++ b/src/update_walk.c
@@ -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;
}