1
0
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:
Aurelien Foret 2006-01-07 10:03:18 +00:00
parent 52346fc121
commit 74b3e0dcae

View File

@ -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);
}