diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2014-10-01 12:28:40 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-10-01 13:53:54 -0700 |
commit | 4d423a3e62c7ab0b04c4bd84995c32daff3b24c3 (patch) | |
tree | 7d8744732c898c665086d784bd2fce28cd8248d5 /git-quiltimport.sh | |
parent | ec38b4e482e96e62762452cab5714e55abdb48c3 (diff) | |
download | git-4d423a3e62c7ab0b04c4bd84995c32daff3b24c3.tar.gz git-4d423a3e62c7ab0b04c4bd84995c32daff3b24c3.tar.xz |
hold_lock_file_for_append(): restore errno before returning
Callers who don't pass LOCK_DIE_ON_ERROR might want to examine errno
to see what went wrong, so restore errno before returning.
In fact this function only has one caller, add_to_alternates_file(),
and it *does* use LOCK_DIE_ON_ERROR, but, you know, think of future
generations.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-quiltimport.sh')
0 files changed, 0 insertions, 0 deletions