mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
removed handle/uid checks (CYGWIN)
This commit is contained in:
parent
52346fc121
commit
74b3e0dcae
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user