summaryrefslogtreecommitdiff
path: root/builtin-ls-files.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@osdl.org>2006-07-31 16:55:15 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-07-31 18:55:56 (GMT)
commit7f8508e8d320d768a34483682e9f2dc5af1af04b (patch)
tree40434a406220ddd64980cc6f23ea5a6d8f4c2c7c /builtin-ls-files.c
parentb63fafdfd844c2037fba53b9944431c1378b4135 (diff)
downloadgit-7f8508e8d320d768a34483682e9f2dc5af1af04b.zip
git-7f8508e8d320d768a34483682e9f2dc5af1af04b.tar.gz
git-7f8508e8d320d768a34483682e9f2dc5af1af04b.tar.bz2
Fix double "close()" in ce_compare_data
Doing an "strace" on "git diff" shows that we close() a file descriptor twice (getting EBADFD on the second one) when we end up in ce_compare_data if the index does not match the checked-out stat information. The "index_fd()" function will already have closed the fd for us, so we should not close it again. Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-ls-files.c')
0 files changed, 0 insertions, 0 deletions