diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-11-16 21:49:42 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-11-16 21:49:42 +0000 |
commit | f2e676aa1585de170b39cf3e9d71b88db47e4b1b (patch) | |
tree | 3553b3481de51b2321b201ae34024f178af894c1 /src/http/modules/ngx_http_index_handler.c | |
parent | 297c0487518d4b974a548dfd3d5d2f10c250177c (diff) | |
download | nginx-f2e676aa1585de170b39cf3e9d71b88db47e4b1b.tar.gz nginx-f2e676aa1585de170b39cf3e9d71b88db47e4b1b.zip |
nginx-0.0.1-2003-11-17-00:49:42 import
Diffstat (limited to 'src/http/modules/ngx_http_index_handler.c')
-rw-r--r-- | src/http/modules/ngx_http_index_handler.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/http/modules/ngx_http_index_handler.c b/src/http/modules/ngx_http_index_handler.c index 989de0051..e31bf3d09 100644 --- a/src/http/modules/ngx_http_index_handler.c +++ b/src/http/modules/ngx_http_index_handler.c @@ -202,7 +202,7 @@ static int ngx_http_index_test_dir(ngx_http_request_t *r, ngx_log_debug(r->connection->log, "IS_DIR: %s" _ r->path.data); - if (ngx_file_type(r->path.data, &r->file.info) == -1) { + if (ngx_file_info(r->path.data, &r->file.info) == -1) { err = ngx_errno; @@ -212,14 +212,14 @@ ngx_log_debug(r->connection->log, "IS_DIR: %s" _ r->path.data); } ngx_log_error(NGX_LOG_CRIT, r->connection->log, err, - ngx_file_type_n " %s failed", r->path.data); + ngx_file_info_n " %s failed", r->path.data); return NGX_HTTP_INTERNAL_SERVER_ERROR; } r->path.data[r->path.len - 1] = '/'; - if (ngx_is_dir((&r->file.info))) { + if (ngx_is_dir(&r->file.info)) { return NGX_OK; } |