diff options
author | Max Kellermann <max@duempel.org> | 2008-10-15 19:36:31 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-15 19:36:31 +0200 |
commit | 76779f0fbe195d4334fdd56d0f36630a4eca5240 (patch) | |
tree | 391668f864a15245d52d811c8f0884c0c3c20289 | |
parent | 8746a58ab93f0662bf1e8b91a36c261822ffeed5 (diff) | |
download | mpd-76779f0fbe195d4334fdd56d0f36630a4eca5240.tar.gz mpd-76779f0fbe195d4334fdd56d0f36630a4eca5240.tar.xz mpd-76779f0fbe195d4334fdd56d0f36630a4eca5240.zip |
path: allow starting MPD with non-existing music directory
When the music directory is not mounted yet, let MPD start anyway.
-rw-r--r-- | src/path.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/path.c b/src/path.c index 0728aee64..2a78870c0 100644 --- a/src/path.c +++ b/src/path.c @@ -115,18 +115,18 @@ 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)); - } - closedir(dir); + } 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)); - } - closedir(dir); + } else + closedir(dir); if (fsCharsetParam) { charset = xstrdup(fsCharsetParam->value); |