Win32 returns ERROR_PATH_NOT_FOUND instead of ERROR_FILE_NOT_FOUND

This commit is contained in:
Igor Sysoev 2009-05-28 15:32:22 +00:00
parent 0022826d18
commit 65105aaae3

View File

@ -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;
}