diff options
author | Jeff King <peff@peff.net> | 2017-09-05 08:14:23 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-06 17:19:52 +0900 |
commit | d88ef6605120fd75be38376ba147623cf427bf73 (patch) | |
tree | 921faad50f4f5757c10f8d0b6e6ff4359f659b94 /t/t6200-fmt-merge-msg.sh | |
parent | setup_temporary_shallow: move tempfile struct into function (diff) | |
download | tgif-d88ef6605120fd75be38376ba147623cf427bf73.tar.xz |
verify_signed_buffer: prefer close_tempfile() to close()
We do a manual close() on the descriptor provided to us by
mks_tempfile. But this runs contrary to the advice in
tempfile.h, which notes that you should always use
close_tempfile(). Otherwise the descriptor may be reused
without the tempfile object knowing it, and the later call
to delete_tempfile() could close a random descriptor.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6200-fmt-merge-msg.sh')
0 files changed, 0 insertions, 0 deletions