summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@elego.de>2011-06-07 17:03:07 +0200
committerCarlos Martín Nieto <cmn@elego.de>2011-06-07 17:05:40 +0200
commitbb9272dd7af68590452cbf91b0b8583e22f0c066 (patch)
tree458929d9098156b2351971005648385ec8198214 /include/git2
parent8102a961b83afdee7341f2fc4bbb9fc3d9efd295 (diff)
downloadlibgit2-bb9272dd7af68590452cbf91b0b8583e22f0c066.tar.gz
filebuf cleanup: only unlink lockfile if we've opened it
Add a check for the file descriptor in git_filebuf_cleanup. Without it, an existing lockfile would be deleted if we tried to acquire it (but failed, as the lockfile already existed). Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Diffstat (limited to 'include/git2')
0 files changed, 0 insertions, 0 deletions