From af15744967957d4c14be9a0024475e335a2c4470 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Wed, 5 Oct 2005 21:50:58 +0000 Subject: Applied reworked patch from VMiklos (vmiklos@frugalware.org) Close the lock file descriptor upon handle release --- lib/libalpm/handle.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libalpm/handle.c') 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(); -- cgit v1.2.3