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_cycle.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_cycle.c')
-rw-r--r-- | src/core/ngx_cycle.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c index f3dc8619b..b6e9af275 100644 --- a/src/core/ngx_cycle.c +++ b/src/core/ngx_cycle.c @@ -359,8 +359,9 @@ ngx_init_cycle(ngx_cycle_t *old_cycle) continue; } - file[i].fd = ngx_open_file(file[i].name.data, NGX_FILE_RDWR, - NGX_FILE_CREATE_OR_OPEN|NGX_FILE_APPEND, + file[i].fd = ngx_open_file(file[i].name.data, + NGX_FILE_RDWR|NGX_FILE_APPEND, + NGX_FILE_CREATE_OR_OPEN, NGX_FILE_DEFAULT_ACCESS); ngx_log_debug3(NGX_LOG_DEBUG_CORE, log, 0, @@ -1064,9 +1065,8 @@ ngx_reopen_files(ngx_cycle_t *cycle, ngx_uid_t user) file[i].pos = file[i].buffer; } - fd = ngx_open_file(file[i].name.data, NGX_FILE_RDWR, - NGX_FILE_CREATE_OR_OPEN|NGX_FILE_APPEND, - NGX_FILE_DEFAULT_ACCESS); + fd = ngx_open_file(file[i].name.data, NGX_FILE_RDWR|NGX_FILE_APPEND, + NGX_FILE_CREATE_OR_OPEN, NGX_FILE_DEFAULT_ACCESS); ngx_log_debug3(NGX_LOG_DEBUG_EVENT, cycle->log, 0, "reopen file \"%s\", old:%d new:%d", |