Mercurial > hg > nginx
changeset 2898:a3501111378c
Win32 returns ERROR_PATH_NOT_FOUND instead of ERROR_FILE_NOT_FOUND
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 28 May 2009 15:32:22 +0000 |
parents | d5d3fe7197cc |
children | 61d5b945730a |
files | src/core/ngx_file.c |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/ngx_file.c Thu May 28 15:30:45 2009 +0000 +++ b/src/core/ngx_file.c Thu May 28 15:32:22 2009 +0000 @@ -558,8 +558,14 @@ 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; }