From: Jeff Lenk Date: Sun, 16 Mar 2014 04:09:45 +0000 (-0500) Subject: FS-6355 remove check on delete X-Git-Tag: v1.5.11~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69cc7014e46a9df720440219d529ddd9a2b7751e;p=thirdparty%2Ffreeswitch.git FS-6355 remove check on delete --- diff --git a/src/switch_xml.c b/src/switch_xml.c index 670187d5fb..94e998036f 100644 --- a/src/switch_xml.c +++ b/src/switch_xml.c @@ -1642,9 +1642,8 @@ SWITCH_DECLARE(switch_xml_t) switch_xml_parse_file(const char *file) if (preprocess(SWITCH_GLOBAL_dirs.conf_dir, file, write_fd, 0) > -1) { fclose(write_fd); write_fd = NULL; - if ( unlink (new_file)) { - goto done; - } + unlink (new_file); + if ( rename(new_file_tmp,new_file) ) { goto done; }