From a25b8acd827ffd663e24e27961796ccf80aa5571 Mon Sep 17 00:00:00 2001 From: Avuton Olrich Date: Mon, 8 Dec 2008 09:00:38 +0100 Subject: update: default to follow all symlinks MPD 0.13 and older followed all symbolic links. Although this can be a security problem (as it has always been), 0.14 should offer the same default behaviour as 0.13. --- doc/mpd.conf.5 | 2 +- doc/mpdconf.example | 2 +- src/update.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/mpd.conf.5 b/doc/mpd.conf.5 index 4427b9798..52d7714cd 100644 --- a/doc/mpd.conf.5 +++ b/doc/mpd.conf.5 @@ -38,7 +38,7 @@ This specifies the directory where saved playlists are stored. .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". +The default is "yes". .TP .B follow_inside_symlinks Control if MPD will follow symbolic links pointing outside the music dir, potentially diff --git a/doc/mpdconf.example b/doc/mpdconf.example index 151c9464f..808c035a7 100644 --- a/doc/mpdconf.example +++ b/doc/mpdconf.example @@ -7,7 +7,7 @@ playlist_directory "~/.mpd/playlists" db_file "~/.mpd/mpd.db" log_file "~/.mpd/mpd.log" error_file "~/.mpd/mpd.error" -#follow_outside_symlinks "no" +#follow_outside_symlinks "yes" #follow_inside_symlinks "yes" ################################################################ diff --git a/src/update.c b/src/update.c index 2349d3e0f..ae079b74c 100644 --- a/src/update.c +++ b/src/update.c @@ -59,7 +59,7 @@ static struct condition delete_cond; enum { DEFAULT_FOLLOW_INSIDE_SYMLINKS = true, - DEFAULT_FOLLOW_OUTSIDE_SYMLINKS = false, + DEFAULT_FOLLOW_OUTSIDE_SYMLINKS = true, }; static bool follow_inside_symlinks; -- cgit v1.2.3