1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-11-10 16:19:54 +00:00

Fix: check for syscmds directory

This commit is contained in:
Jürgen Mang 2019-01-30 10:00:26 +01:00 committed by GitHub
parent dbfdef524d
commit c5cac48ac7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -368,6 +368,14 @@ int main(int argc, char **argv) {
goto cleanup; goto cleanup;
} }
if (config->syscmds == true) {
snprintf(testdirname, 400, "%s/syscmds", config->etcdir);
if (!testdir("Syscmds directory", testdirname)) {
printf("Disabling syscmd support\n");
config->syscmds = false;
}
}
//Create working threads //Create working threads
pthread_t mpd_client_thread, web_server_thread, mympd_api_thread; pthread_t mpd_client_thread, web_server_thread, mympd_api_thread;
//mpd connection //mpd connection