mirror of
https://github.com/nginx/nginx.git
synced 2024-12-05 06:19:01 +08:00
Win32 returns ERROR_PATH_NOT_FOUND instead of ERROR_FILE_NOT_FOUND
This commit is contained in:
parent
0022826d18
commit
65105aaae3
@ -558,8 +558,14 @@ ngx_ext_rename_file(ngx_str_t *src, ngx_str_t *to, ngx_ext_rename_file_t *ext)
|
||||
|
||||
err = ngx_errno;
|
||||
|
||||
if (err == NGX_ENOENT) {
|
||||
|
||||
if (err
|
||||
#if (NGX_WIN32)
|
||||
== ERROR_PATH_NOT_FOUND
|
||||
#else
|
||||
== NGX_ENOENT
|
||||
#endif
|
||||
)
|
||||
{
|
||||
if (!ext->create_path) {
|
||||
goto failed;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user