summaryrefslogtreecommitdiff
path: root/lib/libalpm/handle.c
diff options
context:
space:
mode:
authorAllan McRae <mcrae_allan@hotmail.com>2008-05-26 16:27:06 +1000
committerDan McGee <dan@archlinux.org>2008-05-29 06:37:21 -0500
commit62ee1bfff08b358a11e08194adc5774a8a1cdf51 (patch)
treea21bb805c7b43c871bae363487057186486dad23 /lib/libalpm/handle.c
parent1cca4ef764519c00326dc81669b2bbd4bf1b978f (diff)
downloadpacman-62ee1bfff08b358a11e08194adc5774a8a1cdf51.tar.xz
Tidy up of the handle struct in libalpm
Removed unused handle->uid from pmhandle_t. The need to check permissions should be determined by the frontend (and is in pacman). Fixed comment on noextract in pmhandle_t. Signed-off-by: Allan McRae <mcrae_allan@hotmail.com> Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/handle.c')
-rw-r--r--lib/libalpm/handle.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c
index 5f209d4c..c01dd551 100644
--- a/lib/libalpm/handle.c
+++ b/lib/libalpm/handle.c
@@ -23,7 +23,6 @@
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include <limits.h>
#include <sys/types.h>
#include <syslog.h>
@@ -53,8 +52,6 @@ pmhandle_t *_alpm_handle_new()
handle->lckfd = -1;
handle->logstream = NULL;
- /* see if we're root or not */
- handle->uid = geteuid();
handle->root = NULL;
handle->dbpath = NULL;
handle->cachedirs = NULL;