aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_index_handler.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-04-11 16:01:14 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-04-11 16:01:14 +0000
commitfd67586ef670a2ed181bb19d60619714f404aacc (patch)
treef13d1535caa6ff13d512d71ba8d1003c75f47cb8 /src/http/modules/ngx_http_index_handler.c
parentcde2478a8540b19d4c9f5077fae23803889ed393 (diff)
downloadnginx-fd67586ef670a2ed181bb19d60619714f404aacc.tar.gz
nginx-fd67586ef670a2ed181bb19d60619714f404aacc.zip
nginx-0.0.1-2003-04-11-20:01:14 import
Diffstat (limited to 'src/http/modules/ngx_http_index_handler.c')
-rw-r--r--src/http/modules/ngx_http_index_handler.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/http/modules/ngx_http_index_handler.c b/src/http/modules/ngx_http_index_handler.c
index 2dbd6aa09..38683f7db 100644
--- a/src/http/modules/ngx_http_index_handler.c
+++ b/src/http/modules/ngx_http_index_handler.c
@@ -58,8 +58,9 @@ ngx_module_t ngx_http_index_module = {
Try to open first index file before the test of the directory existence
because the valid requests should be many more then invalid ones.
If open() failed then stat() should be more quickly because some data
- is already cached in the kernel. Besides Win32 has ERROR_PATH_NOT_FOUND
- and Unix has ENOTDIR error (although it less helpfull).
+ is already cached in the kernel.
+ Besides Win32 has ERROR_PATH_NOT_FOUND (NGX_ENOTDIR) and
+ Unix has ENOTDIR error (although it less helpfull).
*/
int ngx_http_index_handler(ngx_http_request_t *r)
@@ -110,11 +111,7 @@ int ngx_http_index_handler(ngx_http_request_t *r)
ngx_log_error(NGX_LOG_DEBUG, r->connection->log, err,
"DEBUG: " ngx_open_file_n " %s failed", name);
-#if (WIN32)
- if (err == ERROR_PATH_NOT_FOUND) {
-#else
if (err == NGX_ENOTDIR) {
-#endif
r->path_not_found = 1;
} else if (err == NGX_EACCES) {