summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-01-07 11:03:18 +0100
committerAurelien Foret <aurelien@archlinux.org>2006-01-07 11:03:18 +0100
commit74b3e0dcaeec9a07636b9227f372b0c1cf153986 (patch)
tree69bbab47c282cdb8cc80560f1892769d3a799890 /lib
parent52346fc121c552d77d32ee9caa9adab7fbd92b1a (diff)
downloadpacman-74b3e0dcaeec9a07636b9227f372b0c1cf153986.tar.gz
pacman-74b3e0dcaeec9a07636b9227f372b0c1cf153986.tar.xz
removed handle/uid checks (CYGWIN)
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/handle.c4
1 files changed, 4 insertions, 0 deletions
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);
}