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
1 changed files with 8 additions and 0 deletions

View File

@ -368,6 +368,14 @@ int main(int argc, char **argv) {
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
pthread_t mpd_client_thread, web_server_thread, mympd_api_thread;
//mpd connection