diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2007-02-02 03:00:03 -0500 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-02-02 21:33:18 -0800 |
commit | 3cf8b462d2dbe78233bba5c0765ecaa2c6b6cd99 (patch) | |
tree | c2435bd80d4bdb7025cba8e37d8e0d6bfa45868f /t/t3800-mktag.sh | |
parent | doc: hooks.txt said post-commit default sends an email, it doesn't (diff) | |
download | tgif-3cf8b462d2dbe78233bba5c0765ecaa2c6b6cd99.tar.xz |
Don't leak file descriptors from unavailable pack files.
If open_packed_git failed it may have been because the packfile
actually exists and is readable, but some sort of verification
did not pass. In this case open_packed_git left pack_fd filled
in, as the file descriptor is valid. We don't want to leak the
file descriptor, nor do we want to allow someone in the future
to use this packed_git.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/t3800-mktag.sh')
0 files changed, 0 insertions, 0 deletions