mirror of
https://github.com/nginx/nginx.git
synced 2025-06-16 16:51:05 +08:00
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
This commit is contained in:
parent
9c8fa5efe5
commit
a75362dcdb
@ -592,6 +592,10 @@ ngx_ext_rename_file(ngx_str_t *src, ngx_str_t *to, ngx_ext_rename_file_t *ext)
|
|||||||
|
|
||||||
if (err == NGX_EEXIST) {
|
if (err == NGX_EEXIST) {
|
||||||
err = ngx_win32_rename_file(src, to, ext->log);
|
err = ngx_win32_rename_file(src, to, ext->log);
|
||||||
|
|
||||||
|
if (err == 0) {
|
||||||
|
return NGX_OK;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user