Mercurial > hg > nginx
comparison src/core/ngx_file.c @ 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 | 4bd7825fab80 |
children | 8fc7b94f647b |
comparison
equal
deleted
inserted
replaced
2897:d5d3fe7197cc | 2898:a3501111378c |
---|---|
556 return NGX_OK; | 556 return NGX_OK; |
557 } | 557 } |
558 | 558 |
559 err = ngx_errno; | 559 err = ngx_errno; |
560 | 560 |
561 if (err == NGX_ENOENT) { | 561 if (err |
562 | 562 #if (NGX_WIN32) |
563 == ERROR_PATH_NOT_FOUND | |
564 #else | |
565 == NGX_ENOENT | |
566 #endif | |
567 ) | |
568 { | |
563 if (!ext->create_path) { | 569 if (!ext->create_path) { |
564 goto failed; | 570 goto failed; |
565 } | 571 } |
566 | 572 |
567 err = ngx_create_full_path(to->data, ngx_dir_access(ext->path_access)); | 573 err = ngx_create_full_path(to->data, ngx_dir_access(ext->path_access)); |