aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_files.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/unix/ngx_files.h')
-rw-r--r--src/os/unix/ngx_files.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/os/unix/ngx_files.h b/src/os/unix/ngx_files.h
index 1e98fc081..d89aee0ad 100644
--- a/src/os/unix/ngx_files.h
+++ b/src/os/unix/ngx_files.h
@@ -17,8 +17,8 @@
-#define ngx_open_file(name, access, create) \
- open((const char *) name, access|create, 0644)
+#define ngx_open_file(name, mode, create, access) \
+ open((const char *) name, mode|create, access)
#define ngx_open_file_n "open()"
#define NGX_FILE_RDONLY O_RDONLY
@@ -28,6 +28,8 @@
#define NGX_FILE_TRUNCATE O_TRUNC
#define NGX_FILE_APPEND O_APPEND
+#define NGX_FILE_DEFAULT_ACCESS 0644
+
#define ngx_close_file close
#define ngx_close_file_n "close()"