From 62ee1bfff08b358a11e08194adc5774a8a1cdf51 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Mon, 26 May 2008 16:27:06 +1000 Subject: 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 Signed-off-by: Xavier Chantry Signed-off-by: Dan McGee --- lib/libalpm/handle.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/libalpm/handle.c') 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 #include -#include #include #include #include @@ -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; -- cgit v1.2.3-24-g4f1b