mirror of
https://github.com/nginx/nginx.git
synced 2026-08-31 09:06:25 +00:00
backout O_NOATIME support, it requires CAP_FOWNER capability
This commit is contained in:
parent
bd39d9f66b
commit
fc54daadb1
4 changed files with 2 additions and 10 deletions
|
|
@ -239,8 +239,7 @@ ngx_http_index_handler(ngx_http_request_t *r)
|
|||
return NGX_HTTP_INTERNAL_SERVER_ERROR;
|
||||
}
|
||||
|
||||
fd = ngx_open_file(ctx->path.data, NGX_FILE_RDONLY|NGX_FILE_NOATIME,
|
||||
NGX_FILE_OPEN);
|
||||
fd = ngx_open_file(ctx->path.data, NGX_FILE_RDONLY, NGX_FILE_OPEN);
|
||||
|
||||
if (fd == (ngx_fd_t) NGX_AGAIN) {
|
||||
ctx->current = i;
|
||||
|
|
|
|||
|
|
@ -125,8 +125,7 @@ ngx_http_static_handler(ngx_http_request_t *r)
|
|||
return NGX_HTTP_INTERNAL_SERVER_ERROR;
|
||||
}
|
||||
|
||||
fd = ngx_open_file(path.data, NGX_FILE_RDONLY|NGX_FILE_NOATIME,
|
||||
NGX_FILE_OPEN);
|
||||
fd = ngx_open_file(path.data, NGX_FILE_RDONLY, NGX_FILE_OPEN);
|
||||
|
||||
if (fd == NGX_INVALID_FILE) {
|
||||
err = ngx_errno;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue