]> granicus.if.org Git - sudo/commitdiff
Remove Ultrix support, modern sudo can't run on Ultrix anyway.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 14 Nov 2016 21:33:43 +0000 (14:33 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 14 Nov 2016 21:33:43 +0000 (14:33 -0700)
config.h.in
configure
configure.ac
plugins/sudoers/auth/passwd.c
plugins/sudoers/getspwuid.c

index e34cc6dfdff849430358de48bc8e0c75a4541666..b090672b0533a7e390aef42cebee49856ea130b9 100644 (file)
 /* Define to 1 if you have the `getaddrinfo' function. */
 #undef HAVE_GETADDRINFO
 
-/* Define to 1 if you have the `getauthuid' function. (ULTRIX 4.x shadow
-   passwords). */
-#undef HAVE_GETAUTHUID
-
 /* Define to 1 if you have the `getdomainname' function. */
 #undef HAVE_GETDOMAINNAME
 
index 2a10f9dd04c27a7b8fc06d0728c13b5ff531fd05..758d41e428df8ea770241083f7c3c2617b4faf37 100755 (executable)
--- a/configure
+++ b/configure
@@ -15321,11 +15321,6 @@ _ACEOF
                # lockf() is broken on the Hurd
                ac_cv_func_lockf=no
                ;;
-    *-*-ultrix*)
-               OS="ultrix"
-               shadow_funcs="getauthuid"
-               shadow_libs="-lauth"
-               ;;
     *-*-riscos*)
                LIBS="${LIBS} -lsun -lbsd"
 
@@ -26774,6 +26769,5 @@ fi
 
 
 
-
 
 
index e3b284be888f1f3d99195c546583588b59868493..664a2997270827b609101dcd2ae492f2f3e77a8b 100644 (file)
@@ -1977,11 +1977,6 @@ case "$host" in
                # lockf() is broken on the Hurd
                ac_cv_func_lockf=no
                ;;
-    *-*-ultrix*)
-               OS="ultrix"
-               shadow_funcs="getauthuid"
-               shadow_libs="-lauth"
-               ;;
     *-*-riscos*)
                LIBS="${LIBS} -lsun -lbsd"
                SUDO_APPEND_CPPFLAGS(-I/usr/include)
@@ -4317,7 +4312,6 @@ AH_TEMPLATE(HAVE_DLOPEN, [Define to 1 if you have the `dlopen' function.])
 AH_TEMPLATE(HAVE_FCNTL_CLOSEM, [Define to 1 if your system has the F_CLOSEM fcntl.])
 AH_TEMPLATE(HAVE_FNMATCH, [Define to 1 if you have the `fnmatch' function.])
 AH_TEMPLATE(HAVE_FWTK, [Define to 1 if you use the FWTK authsrv daemon.])
-AH_TEMPLATE(HAVE_GETAUTHUID, [Define to 1 if you have the `getauthuid' function. (ULTRIX 4.x  shadow passwords).])
 AH_TEMPLATE(HAVE_GETPRPWNAM, [Define to 1 if you have the `getprpwnam' function.  (SecureWare-style shadow passwords).])
 AH_TEMPLATE(HAVE_GETPWANAM, [Define to 1 if you have the `getpwanam' function. (SunOS 4.x shadow passwords).])
 AH_TEMPLATE(HAVE_GETSPNAM, [Define to 1 if you have the `getspnam' function (SVR4-style shadow passwords).])
index 7318f09d37740bbfba461677acfd90df6eb423de..ae5e086c2b54e6be4ead40c8ac46e17eca0ada36 100644 (file)
@@ -66,13 +66,6 @@ sudo_passwd_verify(struct passwd *pw, char *pass, sudo_auth *auth, struct sudo_c
     if (pass[0] == '\0')
        debug_return_int(pw_epasswd[0] ? AUTH_FAILURE : AUTH_SUCCESS);
 
-#ifdef HAVE_GETAUTHUID
-    /* Ultrix shadow passwords may use crypt16() */
-    epass = (char *) crypt16(pass, pw_epasswd);
-    if (epass != NULL && strcmp(pw_epasswd, epass) == 0)
-       debug_return_int(AUTH_SUCCESS);
-#endif /* HAVE_GETAUTHUID */
-
     /*
      * Truncate to 8 chars if standard DES since not all crypt()'s do this.
      * If this turns out not to be safe we will have to use OS #ifdef's (sigh).
index 38cbc4f6241d0bfe6bb118c1b189235d18b18178..0b428f4fcf6f22e677d45871345b146d26e9494a 100644 (file)
@@ -51,9 +51,6 @@
 # include <sys/audit.h>
 # include <pwdadj.h>
 #endif /* HAVE_GETPWANAM */
-#ifdef HAVE_GETAUTHUID
-# include <auth.h>
-#endif /* HAVE_GETAUTHUID */
 
 #include "sudoers.h"
 
@@ -120,14 +117,6 @@ sudo_getepw(const struct passwd *pw)
            epw = spw->pwa_passwd;
     }
 #endif /* HAVE_GETPWANAM */
-#ifdef HAVE_GETAUTHUID
-    {
-       AUTHORIZATION *spw;
-
-       if ((spw = getauthuid(pw->pw_uid)) && spw->a_password)
-           epw = spw->a_password;
-    }
-#endif /* HAVE_GETAUTHUID */
 
 #if defined(HAVE_ISCOMSEC) || defined(HAVE_ISSECURE)
 done:
@@ -152,9 +141,6 @@ sudo_setspent(void)
 #endif
 #ifdef HAVE_GETPWANAM
     setpwaent();
-#endif
-#ifdef HAVE_GETAUTHUID
-    setauthent();
 #endif
     debug_return;
 }
@@ -175,9 +161,6 @@ sudo_endspent(void)
 #endif
 #ifdef HAVE_GETPWANAM
     endpwaent();
-#endif
-#ifdef HAVE_GETAUTHUID
-    endauthent();
 #endif
     debug_return;
 }