diff options
author | Matthieu Moy <Matthieu.Moy@imag.fr> | 2010-02-22 23:32:15 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-02-22 15:24:46 -0800 |
commit | 1d9740cb324f7f5d798ecfc259dc213b244ad9b7 (patch) | |
tree | 1309b7e6d7b38cfc0d5fb0199905eee59d7a4e3c /Documentation | |
parent | Use git_mkstemp_mode and xmkstemp_mode in odb_mkstemp, not chmod later. (diff) | |
download | tgif-1d9740cb324f7f5d798ecfc259dc213b244ad9b7.tar.xz |
git_mkstemps_mode: don't set errno to EINVAL on exit.
When reaching the end of git_mkstemps_mode, at least one call to open()
has been done, and errno has been set accordingly. Setting errno is
therefore not necessary, and actually harmfull since callers can't
distinguish e.g. permanent failure from ENOENT, which can just mean that
we need to create the containing directory.
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions