mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00:00
update nginx.xs to ngx_open_file(name, mode, create, access)
This commit is contained in:
parent
83ff0cdc4b
commit
5fdb179a60
1 changed files with 1 additions and 1 deletions
|
|
@ -632,7 +632,7 @@ sendfile(r, filename, offset = -1, bytes = 0)
|
|||
XSRETURN_EMPTY;
|
||||
}
|
||||
|
||||
fd = ngx_open_file((u_char *) filename, NGX_FILE_RDONLY, NGX_FILE_OPEN);
|
||||
fd = ngx_open_file((u_char *) filename, NGX_FILE_RDONLY, NGX_FILE_OPEN, 0);
|
||||
|
||||
if (fd == NGX_INVALID_FILE) {
|
||||
ngx_log_error(NGX_LOG_CRIT, r->connection->log, ngx_errno,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue