From: Ezra Peisach Date: Thu, 18 May 1995 19:08:19 +0000 (+0000) Subject: in_tkt.c: Use HAVE_SETREUID and HAVE_SETRESUID to define setreuid properly X-Git-Tag: krb5-1.0-beta6~1973 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=05d4ec26868f072a5309d33f3acdfcf104997a77;p=krb5.git in_tkt.c: Use HAVE_SETREUID and HAVE_SETRESUID to define setreuid properly configure.in: Check for setreuid and setresuid git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5824 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb4/ChangeLog b/src/lib/krb4/ChangeLog index c59459df2..e83a3f125 100644 --- a/src/lib/krb4/ChangeLog +++ b/src/lib/krb4/ChangeLog @@ -1,3 +1,10 @@ +Thu May 18 14:43:51 1995 Ezra Peisach + + * in_tkt.c: Use HAVE_SETREUID and HAVE_SETRESUID to define + setreuid properly. + + * configure.in: Check for setreuid and setresuid + Sun May 7 08:05:56 1995 Ezra Peisach * mk_preauth.c: Add and either or provide diff --git a/src/lib/krb4/configure.in b/src/lib/krb4/configure.in index dd118adda..dd1efc350 100644 --- a/src/lib/krb4/configure.in +++ b/src/lib/krb4/configure.in @@ -43,6 +43,8 @@ else AC_DEFINE(BITS32) fi AC_FUNC_CHECK(strsave,AC_DEFINE(HAVE_STRSAVE)) +AC_FUNC_CHECK(setreuid,AC_DEFINE(HAVE_SETREUID)) +AC_FUNC_CHECK(setresuid,AC_DEFINE(HAVE_SETRESUID)) ET_RULES SubdirLibraryRule([$(OBJS)]) KRB_INCLUDE diff --git a/src/lib/krb4/in_tkt.c b/src/lib/krb4/in_tkt.c index 4674f3116..419089c68 100644 --- a/src/lib/krb4/in_tkt.c +++ b/src/lib/krb4/in_tkt.c @@ -31,11 +31,12 @@ extern int krb_debug; * success, or KFAILURE if something goes wrong. */ -#ifdef hpux -/* should be HAS_RESUID */ +#ifndef HAVE_SETREUID +#ifdef HAVE_SETRESUID +/* for hpux */ #define setreuid(r,e) setresuid(r,e,-1) #else -#ifdef __svr4__ +/* for svr4 */ #define setreuid(r,e) setuid(r) #endif #endif