summaryrefslogtreecommitdiff
path: root/t/t5532-fetch-proxy.sh
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2017-09-27 02:02:27 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-09-27 15:46:05 +0900
commit8a1a8d2ad1b41a0a28d37d1d21ee9620a23e91eb (patch)
tree28698b53f71c3eb11b85d795d071759138e2b8db /t/t5532-fetch-proxy.sh
parentworktree: use xsize_t to access file size (diff)
downloadtgif-8a1a8d2ad1b41a0a28d37d1d21ee9620a23e91eb.tar.xz
worktree: check the result of read_in_full()
We try to read "len" bytes into a buffer and just assume that it happened correctly. In practice this should usually be the case, since we just stat'd the file to get the length. But we could be fooled by transient errors or by other processes racily truncating the file. Let's be more careful. There's a slim chance this could catch a real error, but it also prevents people and tools from getting worried while reading the code. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5532-fetch-proxy.sh')
0 files changed, 0 insertions, 0 deletions