diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-03-30 14:51:51 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-03-30 14:51:51 +0000 |
commit | fadc7a7e810874b95bb934aa107bfe0a795347d3 (patch) | |
tree | 433f2fc4d83f67bdd560acf35b82dee0af4ac0fa /src/core/ngx_open_file_cache.c | |
parent | 8017a63cb3952850d0b40b4c95a938a7dbff7fe5 (diff) | |
download | nginx-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.c | 5 |
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) { |