From 1ae89728593fce4a40882fa133b9db269015da8f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 13 Aug 2012 23:37:50 +0200 Subject: mapper: fix non-UTF8 music directory name Duplicate the music_dir variable: one encoded in UTF-8, and another one using the configured filesystem character set. This fixes an ancient MPD bug. --- src/inotify_update.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/inotify_update.c') diff --git a/src/inotify_update.c b/src/inotify_update.c index 02e55ee0b..3f4a8c0c4 100644 --- a/src/inotify_update.c +++ b/src/inotify_update.c @@ -266,7 +266,7 @@ mpd_inotify_callback(int wd, unsigned mask, (mask & IN_ISDIR) != 0) { /* a sub directory was changed: register those in inotify */ - const char *root = mapper_get_music_directory(); + const char *root = mapper_get_music_directory_fs(); const char *path_fs; char *allocated = NULL; @@ -308,7 +308,7 @@ mpd_inotify_init(unsigned max_depth) g_debug("initializing inotify"); - const char *path = mapper_get_music_directory(); + const char *path = mapper_get_music_directory_fs(); if (path == NULL) { g_debug("no music directory configured"); return; -- cgit v1.2.3