comparison src/core/ngx_file.c @ 3387:a02b6d2e3bfd

fix Win32 error message when an temporary file replaces an existent file: return at once if ngx_win32_rename_file() was not failed and do not try to delete already the renamed temporary file
author Igor Sysoev <igor@sysoev.ru>
date Thu, 17 Dec 2009 10:05:39 +0000
parents 6be1f25bae90
children 35e258519a83
comparison
equal deleted inserted replaced
3386:044f81432d91 3387:a02b6d2e3bfd
590 590
591 #if (NGX_WIN32) 591 #if (NGX_WIN32)
592 592
593 if (err == NGX_EEXIST) { 593 if (err == NGX_EEXIST) {
594 err = ngx_win32_rename_file(src, to, ext->log); 594 err = ngx_win32_rename_file(src, to, ext->log);
595
596 if (err == 0) {
597 return NGX_OK;
598 }
595 } 599 }
596 600
597 #endif 601 #endif
598 602
599 if (err == NGX_EXDEV) { 603 if (err == NGX_EXDEV) {