aboutsummaryrefslogtreecommitdiffstats
path: root/src/inotify_update.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-08-13 23:37:50 +0200
committerMax Kellermann <max@duempel.org>2012-08-14 02:28:04 +0200
commit1ae89728593fce4a40882fa133b9db269015da8f (patch)
treeb4842a26396a6e40e75d233dfdd9abc31b54bccf /src/inotify_update.c
parentadcd2c8eacd74aeb072b806a3c36922ca2ad753d (diff)
downloadmpd-1ae89728593fce4a40882fa133b9db269015da8f.tar.gz
mpd-1ae89728593fce4a40882fa133b9db269015da8f.tar.xz
mpd-1ae89728593fce4a40882fa133b9db269015da8f.zip
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.
Diffstat (limited to 'src/inotify_update.c')
-rw-r--r--src/inotify_update.c4
1 files changed, 2 insertions, 2 deletions
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;