From 74b3e0dcaeec9a07636b9227f372b0c1cf153986 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Sat, 7 Jan 2006 10:03:18 +0000 Subject: removed handle/uid checks (CYGWIN) --- lib/libalpm/handle.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c index abc37ced..59ba46ed 100644 --- a/lib/libalpm/handle.c +++ b/lib/libalpm/handle.c @@ -52,6 +52,7 @@ pmhandle_t *handle_new() memset(handle, 0, sizeof(pmhandle_t)); handle->lckfd = -1; +#ifndef CYGWIN /* see if we're root or not */ handle->uid = geteuid(); if(!handle->uid && getenv("FAKEROOTKEY")) { @@ -65,6 +66,9 @@ pmhandle_t *handle_new() } else { handle->access = PM_ACCESS_RO; } +#else + handle->access = PM_ACCESS_RW; +#endif return(handle); } -- cgit v1.2.3-54-g00ecf