Mercurial > hg > nginx
comparison src/http/modules/ngx_http_auth_basic_module.c @ 1048:c4f666fc3a7e
ngx_open_file(name, access, create) > ngx_open_file(name, mode, create, access)
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 18 Jan 2007 20:15:09 +0000 |
parents | 6356b34cf027 |
children | e958b3cab51a |
comparison
equal
deleted
inserted
replaced
1047:ea6f43a88208 | 1048:c4f666fc3a7e |
---|---|
131 | 131 |
132 if (rc == NGX_ERROR) { | 132 if (rc == NGX_ERROR) { |
133 return NGX_HTTP_INTERNAL_SERVER_ERROR; | 133 return NGX_HTTP_INTERNAL_SERVER_ERROR; |
134 } | 134 } |
135 | 135 |
136 fd = ngx_open_file(alcf->user_file.data, NGX_FILE_RDONLY, NGX_FILE_OPEN); | 136 fd = ngx_open_file(alcf->user_file.data, NGX_FILE_RDONLY, NGX_FILE_OPEN, 0); |
137 | 137 |
138 if (fd == NGX_INVALID_FILE) { | 138 if (fd == NGX_INVALID_FILE) { |
139 ngx_log_error(NGX_LOG_CRIT, r->connection->log, ngx_errno, | 139 ngx_log_error(NGX_LOG_CRIT, r->connection->log, ngx_errno, |
140 ngx_open_file_n " \"%s\" failed", alcf->user_file.data); | 140 ngx_open_file_n " \"%s\" failed", alcf->user_file.data); |
141 return NGX_HTTP_INTERNAL_SERVER_ERROR; | 141 return NGX_HTTP_INTERNAL_SERVER_ERROR; |