Index: Slim/Utils/Prefs.pm =================================================================== --- Slim/Utils/Prefs.pm (revision 2902) +++ Slim/Utils/Prefs.pm (working copy) @@ -134,7 +134,9 @@ if ((!-e $CacheDir && !-w $CacheParent) || (-e $CacheDir && !-w $CacheDir)) { $CacheDir = undef; } - mkpath $CacheDir if (!-e $CacheDir); + if (defined $CacheDir && !-d $CacheDir) { + mkpath($CacheDir); + } return $CacheDir; }