FS-6355 remove check on delete

This commit is contained in:
Jeff Lenk 2014-03-15 23:09:45 -05:00
parent 3c95a52ff6
commit 69cc7014e4
1 changed files with 2 additions and 3 deletions

View File

@ -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;
}