- (dtucker) [uidswap.c] Skip uid restore test on Cygwin. Patch from

vinschen at redhat.com.
This commit is contained in:
Darren Tucker 2005-02-22 17:57:13 +11:00
parent 04cfbe04aa
commit 2ea9b18918
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
20050222
- (dtucker) [uidswap.c] Skip uid restore test on Cygwin. Patch from
vinschen at redhat.com.
20050220 20050220
- (dtucker) [LICENCE Makefile.in README.platform audit-bsm.c configure.ac - (dtucker) [LICENCE Makefile.in README.platform audit-bsm.c configure.ac
defines.h] Bug #125: Add *EXPERIMENTAL* BSM audit support. Configure defines.h] Bug #125: Add *EXPERIMENTAL* BSM audit support. Configure
@ -2156,4 +2160,4 @@
- (djm) Trim deprecated options from INSTALL. Mention UsePAM - (djm) Trim deprecated options from INSTALL. Mention UsePAM
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
$Id: ChangeLog,v 1.3661 2005/02/20 12:27:11 dtucker Exp $ $Id: ChangeLog,v 1.3662 2005/02/22 06:57:13 dtucker Exp $

View File

@ -56,10 +56,12 @@ temporarily_use_uid(struct passwd *pw)
debug("temporarily_use_uid: %u/%u (e=%u/%u)", debug("temporarily_use_uid: %u/%u (e=%u/%u)",
(u_int)pw->pw_uid, (u_int)pw->pw_gid, (u_int)pw->pw_uid, (u_int)pw->pw_gid,
(u_int)saved_euid, (u_int)saved_egid); (u_int)saved_euid, (u_int)saved_egid);
#ifndef HAVE_CYGWIN
if (saved_euid != 0) { if (saved_euid != 0) {
privileged = 0; privileged = 0;
return; return;
} }
#endif
#else #else
if (geteuid() != 0) { if (geteuid() != 0) {
privileged = 0; privileged = 0;