Mercurial > hg > nginx
diff src/os/unix/ngx_files.c @ 1046:bb139aba3199
rename mode to access
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 18 Jan 2007 19:52:18 +0000 |
parents | 72621ebef255 |
children | b5263e401884 |
line wrap: on
line diff
--- a/src/os/unix/ngx_files.c Thu Jan 18 19:49:00 2007 +0000 +++ b/src/os/unix/ngx_files.c Thu Jan 18 19:52:18 2007 +0000 @@ -112,11 +112,12 @@ ngx_fd_t -ngx_open_tempfile(u_char *name, ngx_uint_t persistent, ngx_uint_t mode) +ngx_open_tempfile(u_char *name, ngx_uint_t persistent, ngx_uint_t access) { ngx_fd_t fd; - fd = open((const char *) name, O_CREAT|O_EXCL|O_RDWR, mode ? mode : 0600); + fd = open((const char *) name, O_CREAT|O_EXCL|O_RDWR, + access ? access : 0600); if (fd != -1 && !persistent) { unlink((const char *) name);