From: Sam Hartman Date: Mon, 20 May 1996 04:14:17 +0000 (+0000) Subject: Fix for HPUx X-Git-Tag: krb5-1.0-beta6~62 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a2bb6a536867a6060f92dd152fb85adcf3640ace;p=krb5.git Fix for HPUx git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8054 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5util/ChangeLog b/src/lib/krb5util/ChangeLog index cf7a4691c..92dca5ba9 100644 --- a/src/lib/krb5util/ChangeLog +++ b/src/lib/krb5util/ChangeLog @@ -1,3 +1,9 @@ +Sun May 19 23:28:22 1996 Sam Hartman + + * seteuid.c (krb5_seteuid): set saved uid to current effective + uid, not current real uid, so we can get back, while calling + setresuid(). + Sat May 18 04:41:55 1996 Sam Hartman * configure.in: Check for functions needed to seteuid. diff --git a/src/lib/krb5util/seteuid.c b/src/lib/krb5util/seteuid.c index 11f43f371..1e9ea612d 100644 --- a/src/lib/krb5util/seteuid.c +++ b/src/lib/krb5util/seteuid.c @@ -36,7 +36,7 @@ int krb5_seteuid( euid) return (seteuid(euid)) ; #else # if defined(HAVE_SETRESUID) - return (setresuid(getuid(), euid, getuid())) ; + return (setresuid(getuid(), euid, geteuid())) ; # else # if defined(HAVE_SETREUID) return setreuid(geteuid(), euid);