From cfa111e9c41de496b02cf03573472cc02560dda4 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Wed, 2 Sep 2015 07:46:59 +0200 Subject: [PATCH] FIX recorder: do not check doc-root existence if http_port == 0 --- ot-recorder.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ot-recorder.c b/ot-recorder.c index d52aa80..7ec7535 100644 --- a/ot-recorder.c +++ b/ot-recorder.c @@ -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");