FIX recorder: do not check doc-root existence if http_port == 0

This commit is contained in:
Jan-Piet Mens
2015-09-02 07:46:59 +02:00
parent d494540161
commit cfa111e9c4

View File

@@ -819,9 +819,11 @@ int main(int argc, char **argv)
openlog("ot-recorder", LOG_PID | LOG_PERROR, syslog_facility_code(logfacility));
#ifdef HAVE_HTTP
if (!is_directory(doc_root)) {
syslog(LOG_ERR, "%s is not a directory", doc_root);
exit(1);
if (http_port) {
if (!is_directory(doc_root)) {
syslog(LOG_ERR, "%s is not a directory", doc_root);
exit(1);
}
}
#endif
syslog(LOG_DEBUG, "starting");