mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
update nginx.xs to ngx_open_file(name, mode, create, access)
This commit is contained in:
parent
83ff0cdc4b
commit
5fdb179a60
@ -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…
Reference in New Issue
Block a user