From: Todd C. Miller Date: Sat, 17 Jun 1995 22:13:17 +0000 (+0000) Subject: no longer need setreuid() emulation X-Git-Tag: SUDO_1_4_0~358 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb7a72d977b1fc9358402100aaae533c4a998391;p=sudo no longer need setreuid() emulation now set _PASSWD_LEN to 128 if kerberos --- diff --git a/compat.h b/compat.h index 707fd1192..4d500947d 100644 --- a/compat.h +++ b/compat.h @@ -71,6 +71,14 @@ # define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG) #endif /* S_ISREG */ +/* + * For kerberos, max password len is 128 + */ +#ifdef HAVE_KERB4 +# undef _PASSWD_LEN +# define _PASSWD_LEN 128 +#endif /* HAVE_KERB4 */ + /* * Some OS's lack these */ @@ -81,15 +89,6 @@ # define GID_NO_CHANGE ((gid_t) -1) #endif /* GID_NO_CHANGE */ -/* - * Emulate setreuid(2) with setresuid(2) - */ -#if defined(HAVE_SETRESUID) && !defined(HAVE_SETREUID) -# undef setreuid -# define setreuid(__R, __E) (setresuid(__R, __E, UID_NO_CHANGE)) -# define HAVE_SETREUID -#endif /* HAVE_SETRESUID && !HAVE_SETREUID */ - /* * Emulate seteuid() and setegid() for HP-UX */