FS-6355 fix for windows delete file

This commit is contained in:
Jeff Lenk 2014-03-15 18:01:03 -05:00
parent 048ce8d1f3
commit 586b189166
1 changed files with 3 additions and 0 deletions

View File

@ -1642,6 +1642,9 @@ 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;
}
if ( rename(new_file_tmp,new_file) ) {
goto done;
}