From: Marc Olivier Chouinard Date: Wed, 8 Mar 2017 21:33:42 +0000 (-0500) Subject: FS-10111: mod_xml_cdr Create folder recursivery to the specified destination X-Git-Tag: v1.8.0~549^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d177f21f69e3477c8ab548366a7c8522bd77b79;p=thirdparty%2Ffreeswitch.git FS-10111: mod_xml_cdr Create folder recursivery to the specified destination --- diff --git a/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c b/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c index 563724d517..d9260b687e 100644 --- a/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c +++ b/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c @@ -108,7 +108,7 @@ static switch_status_t set_xml_cdr_log_dirs() dir_status = SWITCH_STATUS_SUCCESS; if (switch_directory_exists(path, globals.pool) != SWITCH_STATUS_SUCCESS) { - dir_status = switch_dir_make(path, SWITCH_FPROT_OS_DEFAULT, globals.pool); + dir_status = switch_dir_make_recursive(path, SWITCH_DEFAULT_DIR_PERMS, globals.pool); } if (dir_status == SWITCH_STATUS_SUCCESS) { @@ -147,7 +147,7 @@ static switch_status_t set_xml_cdr_log_dirs() dir_status = SWITCH_STATUS_SUCCESS; if (switch_directory_exists(path, globals.pool) != SWITCH_STATUS_SUCCESS) { - dir_status = switch_dir_make(path, SWITCH_FPROT_OS_DEFAULT, globals.pool); + dir_status = switch_dir_make_recursive(path, SWITCH_DEFAULT_DIR_PERMS, globals.pool); } if (dir_status == SWITCH_STATUS_SUCCESS) {