+Tue Jan 6 16:51:44 1998 Tom Yu <tlyu@mit.edu>
+
+ * seteuid.c (krb5_seteuid): Don't check for _POSIX_SAVED_IDS, as
+ 4.4BSD derivatives don't define it but do have a reasonable
+ seteuid anyway. [krb5-libs/503]
+
Tue Nov 18 19:55:22 1997 Tom Yu <tlyu@mit.edu>
* configure.in: Use new library build rules.
#include <stdlib.h>
#endif
-
#include <errno.h>
int krb5_seteuid( euid_in)
- int euid_in;
+ int euid_in;
{
- uid_t euid = (uid_t) euid_in;
-#if defined(_POSIX_SAVED_IDS) && defined(HAVE_SETEUID)
- return (seteuid(euid)) ;
+ uid_t euid = (uid_t) euid_in;
+#if defined(HAVE_SETEUID)
+ return (seteuid(euid)) ;
#else
#if defined(HAVE_SETRESUID)
return (setresuid(getuid(), euid, geteuid())) ;
#else /*HAVE_SETREUID*/
/* You need to add a case to deal with this operating system.*/
errno = EPERM;
- return -1;
+ return -1;
#endif /* HAVE_SETREUID */
#endif /* HAVE_SETRESUID */
-#endif /* _POSIX_SAVED_IDS */
-
-
+#endif /* HAVE_SETEUID */
}