Commit 76779f0f authored by Max Kellermann's avatar Max Kellermann

path: allow starting MPD with non-existing music directory

When the music directory is not mounted yet, let MPD start anyway.
parent 8746a58a
......@@ -115,17 +115,17 @@ void initPaths(void)
playlist_dir_len = strlen(playlistDir);
if ((dir = opendir(playlistDir)) == NULL) {
FATAL("cannot open %s \"%s\" (config line %i): %s\n",
ERROR("cannot open %s \"%s\" (config line %i): %s\n",
CONF_PLAYLIST_DIR, playlistParam->value,
playlistParam->line, strerror(errno));
}
} else
closedir(dir);
if ((dir = opendir(musicDir)) == NULL) {
FATAL("cannot open %s \"%s\" (config line %i): %s\n",
ERROR("cannot open %s \"%s\" (config line %i): %s\n",
CONF_MUSIC_DIR, musicParam->value,
musicParam->line, strerror(errno));
}
} else
closedir(dir);
if (fsCharsetParam) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment