From: Anthony Minessale Date: Mon, 3 Dec 2012 14:07:24 +0000 (-0600) Subject: FS-4886 --resolve the file permisions must be set properly by you, you must have... X-Git-Tag: v1.3.8~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abcff8c94c035d54da0cf76029ad32d0608e520d;p=thirdparty%2Ffreeswitch.git FS-4886 --resolve the file permisions must be set properly by you, you must have installed it as root then changed users. This patch will fix the crash. --- diff --git a/src/mod/applications/mod_httapi/mod_httapi.c b/src/mod/applications/mod_httapi/mod_httapi.c index 845c342f63..275e2f47ff 100644 --- a/src/mod/applications/mod_httapi/mod_httapi.c +++ b/src/mod/applications/mod_httapi/mod_httapi.c @@ -2565,7 +2565,12 @@ static switch_status_t locate_url_file(http_file_context_t *context, const char } - fetch_cache_data(context, url, &headers, context->cache_file); + if ((status = fetch_cache_data(context, url, &headers, context->cache_file)) != SWITCH_STATUS_SUCCESS) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error checking file cache (check permissions)\n"); + goto end; + } + + metadata = switch_core_sprintf(context->pool, "%s:%s:%s:%s", url, switch_event_get_header_nil(headers, "last-modified"),