mirror of
https://github.com/nginx/nginx.git
synced 2024-12-12 18:29:00 +08:00
fail if file size was changed
This commit is contained in:
parent
70df46f5c5
commit
81fed299ce
@ -571,9 +571,7 @@ ngx_output_chain_copy_buf(ngx_output_chain_ctx_t *ctx)
|
|||||||
ngx_log_error(NGX_LOG_ALERT, ctx->pool->log, 0,
|
ngx_log_error(NGX_LOG_ALERT, ctx->pool->log, 0,
|
||||||
ngx_read_file_n " read only %z of %O from \"%s\"",
|
ngx_read_file_n " read only %z of %O from \"%s\"",
|
||||||
n, size, src->file->name.data);
|
n, size, src->file->name.data);
|
||||||
if (n == 0) {
|
return NGX_ERROR;
|
||||||
return NGX_ERROR;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dst->last += n;
|
dst->last += n;
|
||||||
|
Loading…
Reference in New Issue
Block a user