diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-01-18 19:52:18 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-01-18 19:52:18 +0000 |
commit | fe1cb8c3acb6a7e12c10b4bd70411ebf5b005a7e (patch) | |
tree | 5b8ae727be5803aa9ac1d5fac6bc11df9f7cff6c /src/os/unix/ngx_files.c | |
parent | 6ed365fa8ba90359e8a6673acb6d118092183aec (diff) | |
download | nginx-fe1cb8c3acb6a7e12c10b4bd70411ebf5b005a7e.tar.gz nginx-fe1cb8c3acb6a7e12c10b4bd70411ebf5b005a7e.zip |
rename mode to access
Diffstat (limited to 'src/os/unix/ngx_files.c')
-rw-r--r-- | src/os/unix/ngx_files.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/os/unix/ngx_files.c b/src/os/unix/ngx_files.c index 50db532b6..a091b9b77 100644 --- a/src/os/unix/ngx_files.c +++ b/src/os/unix/ngx_files.c @@ -112,11 +112,12 @@ ngx_write_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset) 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); |