comparison src/core/ngx_file.c @ 556:25255878df91 NGINX_0_8_30

nginx 0.8.30 *) Change: now the default buffer size of the "large_client_header_buffers" directive is 8K. Thanks to Andrew Cholakian. *) Feature: the conf/fastcgi.conf for simple FastCGI configurations. *) Bugfix: nginx/Windows tried to rename a temporary file twice if the file should replace an already existent file. *) Bugfix: of "double free or corruption" error issued if host could not be resolved; the bug had appeared in 0.8.22. Thanks to Konstantin Svist. *) Bugfix: in libatomic usage on some platforms. Thanks to W-Mark Kubacki.
author Igor Sysoev <http://sysoev.ru>
date Tue, 15 Dec 2009 00:00:00 +0300
parents 0dc162a5f3e8
children 2da4537168f8
comparison
equal deleted inserted replaced
555:f107b2f5d305 556:25255878df91
589 } 589 }
590 590
591 #if (NGX_WIN32) 591 #if (NGX_WIN32)
592 592
593 if (err == NGX_EEXIST) { 593 if (err == NGX_EEXIST) {
594 if (ngx_win32_rename_file(src, to, ext->log) == NGX_OK) { 594 err = ngx_win32_rename_file(src, to, ext->log);
595
596 if (ngx_rename_file(src->data, to->data) != NGX_FILE_ERROR) {
597 return NGX_OK;
598 }
599
600 err = ngx_errno;
601
602 } else {
603 err = 0;
604 }
605 } 595 }
606 596
607 #endif 597 #endif
608 598
609 if (err == NGX_EXDEV) { 599 if (err == NGX_EXDEV) {