summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/handle.c')
-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);
}