update nginx.xs to ngx_open_file(name, mode, create, access)
This commit is contained in:
parent
886563bfd9
commit
8c69f861c9
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…
Reference in a new issue