comparison src/os/unix/ngx_files.c @ 276:c5c2b2883984 NGINX_0_5_8

nginx 0.5.8 *) Bugfix: a segmentation fault might occur if "client_body_in_file_only on" was used and a request body was small. *) Bugfix: a segmentation fault occurred if "client_body_in_file_only on" and "proxy_pass_request_body off" or "fastcgi_pass_request_body off" directives were used, and nginx switched to a next upstream. *) Bugfix: if the "proxy_buffering off" directive was used and a client connection was non-active, then the connection was closed after send timeout; bug appeared in 0.4.7. *) Bugfix: if the "epoll" method was used and a client closed a connection prematurely, then nginx closed the connection after a send timeout only. *) Bugfix: the "[alert] zero size buf" error when FastCGI server was used. *) Bugfixes in the "limit_zone" directive.
author Igor Sysoev <http://sysoev.ru>
date Fri, 19 Jan 2007 00:00:00 +0300
parents 7d7cee0d62e0
children 6639b93e81b2
comparison
equal deleted inserted replaced
275:1779577cb845 276:c5c2b2883984
110 return n; 110 return n;
111 } 111 }
112 112
113 113
114 ngx_fd_t 114 ngx_fd_t
115 ngx_open_tempfile(u_char *name, ngx_uint_t persistent, ngx_uint_t mode) 115 ngx_open_tempfile(u_char *name, ngx_uint_t persistent, ngx_uint_t access)
116 { 116 {
117 ngx_fd_t fd; 117 ngx_fd_t fd;
118 118
119 fd = open((const char *) name, O_CREAT|O_EXCL|O_RDWR, mode ? mode : 0600); 119 fd = open((const char *) name, O_CREAT|O_EXCL|O_RDWR,
120 access ? access : 0600);
120 121
121 if (fd != -1 && !persistent) { 122 if (fd != -1 && !persistent) {
122 unlink((const char *) name); 123 unlink((const char *) name);
123 } 124 }
124 125