Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/handle.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-10-05 21:50:58 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-10-05 21:50:58 +0000
commitaf15744967957d4c14be9a0024475e335a2c4470 (patch)
tree833fc4c77b65d0cedf06fb9d0063aab9fd18a34d /lib/libalpm/handle.c
parentd7e781a54bc8aad793abd51fdb5f8f1c7cdae7ad (diff)
Applied reworked patch from VMiklos (vmiklos@frugalware.org)
Close the lock file descriptor upon handle release
Diffstat (limited to 'lib/libalpm/handle.c')
-rw-r--r--lib/libalpm/handle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c
index 883d943a..6e855793 100644
--- a/lib/libalpm/handle.c
+++ b/lib/libalpm/handle.c
@@ -50,6 +50,7 @@ pmhandle_t *handle_new()
}
memset(handle, 0, sizeof(pmhandle_t));
+ handle->lckfd = -1;
/* see if we're root or not */
handle->uid = geteuid();