summaryrefslogtreecommitdiff
path: root/ci/print-test-failures.sh
diff options
context:
space:
mode:
authorMatheus Tavares <matheus.bernardino@usp.br>2020-07-09 02:10:39 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-07-09 16:45:06 (GMT)
commit35e6e212fdea3a22abe0dc5867b974b30b787be0 (patch)
tree0d5f2e0dc4fd31bae42f9d923eb17bc58b6f8b07 /ci/print-test-failures.sh
parentaf6b65d45ef179ed52087e80cb089f6b2349f4ec (diff)
downloadgit-35e6e212fdea3a22abe0dc5867b974b30b787be0.zip
git-35e6e212fdea3a22abe0dc5867b974b30b787be0.tar.gz
git-35e6e212fdea3a22abe0dc5867b974b30b787be0.tar.bz2
entry: check for fstat() errors after checkout
In 11179eb311 ("entry.c: check if file exists after checkout", 2017-10-05) we started checking the result of the lstat() call done after writing a file, to avoid writing garbage to the corresponding cache entry. However, the code skips calling lstat() if it's possible to use fstat() when it still has the file descriptor open. And when calling fstat() we don't do the same error checking. To fix that, let the callers of fstat_output() know when fstat() fails. In this case, write_entry() will try to use lstat() and properly report an error if that fails as well. Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ci/print-test-failures.sh')
0 files changed, 0 insertions, 0 deletions