update nginx.xs to ngx_open_file(name, mode, create, access)

This commit is contained in:
Igor Sysoev 2007-01-18 20:48:03 +00:00
parent 886563bfd9
commit 8c69f861c9

View file

@ -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,