]> granicus.if.org Git - sudo/commitdiff
no longer need setreuid() emulation
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 17 Jun 1995 22:13:17 +0000 (22:13 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 17 Jun 1995 22:13:17 +0000 (22:13 +0000)
now set _PASSWD_LEN to 128 if kerberos

compat.h

index 707fd11922933f35bec1bc01903e5dac7e0a12e3..4d500947d3d8f775c6e905b3f1419a3728bad799 100644 (file)
--- a/compat.h
+++ b/compat.h
 #  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
  */
 #  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
  */