diff options
author | Darren Tucker <dtucker@zip.com.au> | 2005-02-22 07:57:13 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2005-02-22 07:57:13 +0100 |
commit | 2ea9b18918162bd17758f1480247c9fa4e75e418 (patch) | |
tree | 7666f5b5f0751f359005c5cdda6a0f14438fdae4 /uidswap.c | |
parent | - (dtucker) [configure.ac] Missing comma in AIX section, somehow causes (diff) | |
download | openssh-2ea9b18918162bd17758f1480247c9fa4e75e418.tar.xz openssh-2ea9b18918162bd17758f1480247c9fa4e75e418.zip |
- (dtucker) [uidswap.c] Skip uid restore test on Cygwin. Patch from
vinschen at redhat.com.
Diffstat (limited to 'uidswap.c')
-rw-r--r-- | uidswap.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -56,10 +56,12 @@ temporarily_use_uid(struct passwd *pw) 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; |