commit | 2ea9b18918162bd17758f1480247c9fa4e75e418 | [log] [tgz] |
---|---|---|
author | Darren Tucker <dtucker@zip.com.au> | Tue Feb 22 17:57:13 2005 +1100 |
committer | Darren Tucker <dtucker@zip.com.au> | Tue Feb 22 17:57:13 2005 +1100 |
tree | 7666f5b5f0751f359005c5cdda6a0f14438fdae4 | |
parent | 04cfbe04aaa0ff43c3e8f131c858411e1b0151a2 [diff] [blame] |
- (dtucker) [uidswap.c] Skip uid restore test on Cygwin. Patch from vinschen at redhat.com.
diff --git a/uidswap.c b/uidswap.c index fa3d7a3..aab7064 100644 --- a/uidswap.c +++ b/uidswap.c
@@ -56,10 +56,12 @@ debug("temporarily_use_uid: %u/%u (e=%u/%u)", (u_int)pw->pw_uid, (u_int)pw->pw_gid, (u_int)saved_euid, (u_int)saved_egid); +#ifndef HAVE_CYGWIN if (saved_euid != 0) { privileged = 0; return; } +#endif #else if (geteuid() != 0) { privileged = 0;