Mercurial > hg > nginx
comparison src/core/ngx_open_file_cache.c @ 2628:64a10d6b97bd
win32 ngx_open_file() supports utf8 names and NGX_FILE_APPEND
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 30 Mar 2009 14:51:51 +0000 |
parents | 225fa4abd76f |
children | 367b29612a00 |
comparison
equal
deleted
inserted
replaced
2627:c9da3e4dc706 | 2628:64a10d6b97bd |
---|---|
464 | 464 |
465 if (!of->log) { | 465 if (!of->log) { |
466 fd = ngx_open_file(name, NGX_FILE_RDONLY, NGX_FILE_OPEN, 0); | 466 fd = ngx_open_file(name, NGX_FILE_RDONLY, NGX_FILE_OPEN, 0); |
467 | 467 |
468 } else { | 468 } else { |
469 fd = ngx_open_file(name, NGX_FILE_RDWR, | 469 fd = ngx_open_file(name, NGX_FILE_RDWR|NGX_FILE_APPEND, |
470 NGX_FILE_CREATE_OR_OPEN|NGX_FILE_APPEND, | 470 NGX_FILE_CREATE_OR_OPEN, NGX_FILE_DEFAULT_ACCESS); |
471 NGX_FILE_DEFAULT_ACCESS); | |
472 } | 471 } |
473 | 472 |
474 if (fd == NGX_INVALID_FILE) { | 473 if (fd == NGX_INVALID_FILE) { |
475 goto failed; | 474 goto failed; |
476 } | 475 } |