diff options
author | Max Kellermann <max@duempel.org> | 2008-12-24 22:04:24 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-24 22:04:24 +0100 |
commit | 1bd3cde062deb3b61872f89ad02fc5d70cff375d (patch) | |
tree | d7b355cc44a271f13eba83ef476c6f0ae419fe35 /src/playlist_save.c | |
parent | a94e59ca2192a9ba80d5ab1919dc25918ce4163c (diff) | |
download | mpd-1bd3cde062deb3b61872f89ad02fc5d70cff375d.tar.gz mpd-1bd3cde062deb3b61872f89ad02fc5d70cff375d.tar.xz mpd-1bd3cde062deb3b61872f89ad02fc5d70cff375d.zip |
playlist: fix stored playlist modifications with absolute paths
When save_absolute_paths_in_playlists was enabled in mpd.conf, MPD
broke all playlists when manipulated using the "playlistdelete"
command. The reason was that map_directory_child_fs() was used, which
doesn't accept slashes in the file name. Use the new map_uri_fs()
function instead.
Diffstat (limited to 'src/playlist_save.c')
-rw-r--r-- | src/playlist_save.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/playlist_save.c b/src/playlist_save.c index 2568d4293..b07137d9e 100644 --- a/src/playlist_save.c +++ b/src/playlist_save.c @@ -48,7 +48,7 @@ playlist_print_uri(FILE *file, const char *uri) if (playlist_saveAbsolutePaths && !isRemoteUrl(uri) && uri[0] != '/') - s = map_directory_child_fs(db_get_root(), uri, tmp); + s = map_uri_fs(uri, tmp); else s = utf8_to_fs_charset(tmp, uri); |