aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_open_file_cache.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-03-30 14:51:51 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-03-30 14:51:51 +0000
commitfadc7a7e810874b95bb934aa107bfe0a795347d3 (patch)
tree433f2fc4d83f67bdd560acf35b82dee0af4ac0fa /src/core/ngx_open_file_cache.c
parent8017a63cb3952850d0b40b4c95a938a7dbff7fe5 (diff)
downloadnginx-fadc7a7e810874b95bb934aa107bfe0a795347d3.tar.gz
nginx-fadc7a7e810874b95bb934aa107bfe0a795347d3.zip
win32 ngx_open_file() supports utf8 names and NGX_FILE_APPEND
Diffstat (limited to 'src/core/ngx_open_file_cache.c')
-rw-r--r--src/core/ngx_open_file_cache.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/ngx_open_file_cache.c b/src/core/ngx_open_file_cache.c
index 60a8368be..2f6581bda 100644
--- a/src/core/ngx_open_file_cache.c
+++ b/src/core/ngx_open_file_cache.c
@@ -466,9 +466,8 @@ ngx_open_and_stat_file(u_char *name, ngx_open_file_info_t *of, ngx_log_t *log)
fd = ngx_open_file(name, NGX_FILE_RDONLY, NGX_FILE_OPEN, 0);
} else {
- fd = ngx_open_file(name, NGX_FILE_RDWR,
- NGX_FILE_CREATE_OR_OPEN|NGX_FILE_APPEND,
- NGX_FILE_DEFAULT_ACCESS);
+ fd = ngx_open_file(name, NGX_FILE_RDWR|NGX_FILE_APPEND,
+ NGX_FILE_CREATE_OR_OPEN, NGX_FILE_DEFAULT_ACCESS);
}
if (fd == NGX_INVALID_FILE) {