index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Xavier Chantry <shiningxc@gmail.com> | 2008-04-15 17:10:39 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-05-14 09:17:02 -0500 |
commit | fb09d35e6a24ef433005728c77453bce99efd010 (patch) | |
tree | 6fa31fac370e66aff0d890b8362a5bd29db9184d /src | |
parent | 33e3182dbd1ad9b68f72914abbf4a93a97b0d79b (diff) |
-rw-r--r-- | src/pacman/pacman.c | 4 |
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 7ae023b2..66fafa10 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -763,7 +763,7 @@ int main(int argc, char *argv[]) { int ret = 0; struct sigaction new_action, old_action; -#if defined(HAVE_GETEUID) +#if defined(HAVE_GETEUID) && !defined(CYGWIN) /* geteuid undefined in CYGWIN */ uid_t myuid = geteuid(); #endif @@ -844,7 +844,7 @@ int main(int argc, char *argv[]) cleanup(ret); } -#if defined(HAVE_GETEUID) +#if defined(HAVE_GETEUID) && !defined(CYGWIN) /* check if we have sufficient permission for the requested operation */ if(myuid > 0 && needs_transaction()) { pm_printf(PM_LOG_ERROR, _("you cannot perform this operation unless you are root.\n")); |