From 5b089f85fd6cf3139768f450b8c18fe9d9211b73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Rigo?= Date: Fri, 28 Nov 2008 10:57:39 +0100 Subject: update: added options which control symlink behaviour The configuration options "follow_outside_symlinks" and "follow_inside_symlinks" let the user control whether MPD should follow symbolic links in the music directory. [mk: converted variables to "bool"; moved configuration to update_global_init()] --- doc/mpd.conf.5 | 11 +++++++++++ doc/mpdconf.example | 2 ++ 2 files changed, 13 insertions(+) (limited to 'doc') diff --git a/doc/mpd.conf.5 b/doc/mpd.conf.5 index 60fd8ebcc..4427b9798 100644 --- a/doc/mpd.conf.5 +++ b/doc/mpd.conf.5 @@ -35,6 +35,17 @@ This specifies the directory where music is located. .B playlist_directory This specifies the directory where saved playlists are stored. .TP +.B follow_outside_symlinks +Control if MPD will follow symbolic links pointing outside the music dir. +You must recreate the database after changing this option. +The default is "no". +.TP +.B follow_inside_symlinks +Control if MPD will follow symbolic links pointing outside the music dir, potentially +adding duplicates to the database. +You must recreate the database after changing this option. +The default is "yes". +.TP .B db_file This specifies where the db file will be stored. .TP diff --git a/doc/mpdconf.example b/doc/mpdconf.example index bb42b3f17..151c9464f 100644 --- a/doc/mpdconf.example +++ b/doc/mpdconf.example @@ -7,6 +7,8 @@ playlist_directory "~/.mpd/playlists" db_file "~/.mpd/mpd.db" log_file "~/.mpd/mpd.log" error_file "~/.mpd/mpd.error" +#follow_outside_symlinks "no" +#follow_inside_symlinks "yes" ################################################################ -- cgit v1.2.3