]> git.kaiwu.me - nginx.git/commit
Dav: fixed ngx_copy_file() to truncate destination file.
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 31 Jul 2018 23:11:58 +0000 (02:11 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Tue, 31 Jul 2018 23:11:58 +0000 (02:11 +0300)
commit6bff9c9967dcac5fa03a0c1de6af0a1285c3d829
treef6bd8bd8054a185962af5750df20ab35e983cb26
parentd5c43bf51c9c62d26c4c2c09a4a337d8b8b1c060
Dav: fixed ngx_copy_file() to truncate destination file.

Previously, ngx_open_file(NGX_FILE_CREATE_OR_OPEN) was used, resulting
in destination file being partially rewritten if exists.  Notably,
this affected WebDAV COPY command (ticket #1576).
src/core/ngx_file.c