---
 src/update_walk.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/update_walk.c b/src/update_walk.c
index 003807d..bb2f247 100644
--- a/src/update_walk.c
+++ b/src/update_walk.c
@@ -676,6 +676,9 @@ directory_make_child_checked(struct directory *parent, 
const char *name_utf8)
            inodeFoundInParent(parent, st.st_ino, st.st_dev))
                return NULL;
 
+    if (skip_symlink(parent, name_utf8))
+               return NULL;
+
        /* if we're adding directory paths, make sure to delete filenames
           with potentially the same name */
        db_lock();
@@ -728,7 +731,8 @@ updatePath(const char *path)
 
        name = g_path_get_basename(path);
 
-       if (stat_directory_child(parent, name, &st) == 0)
+       if (!skip_symlink(parent, name) &&
+           stat_directory_child(parent, name, &st) == 0)
                updateInDirectory(parent, name, &st);
        else
                modified |= delete_name_in(parent, name);
-- 
1.7.9.1


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to