summaryrefslogtreecommitdiff
path: root/builtin/rm.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2014-10-01 10:28:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-10-01 20:53:54 (GMT)
commit4d423a3e62c7ab0b04c4bd84995c32daff3b24c3 (patch)
tree7d8744732c898c665086d784bd2fce28cd8248d5 /builtin/rm.c
parentec38b4e482e96e62762452cab5714e55abdb48c3 (diff)
downloadgit-4d423a3e62c7ab0b04c4bd84995c32daff3b24c3.zip
git-4d423a3e62c7ab0b04c4bd84995c32daff3b24c3.tar.gz
git-4d423a3e62c7ab0b04c4bd84995c32daff3b24c3.tar.bz2
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 'builtin/rm.c')
0 files changed, 0 insertions, 0 deletions