]> granicus.if.org Git - sudo/commitdiff
Remove HP-UX 9 support, it is not modern enough for sudo.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 14 Nov 2016 21:38:01 +0000 (14:38 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 14 Nov 2016 21:38:01 +0000 (14:38 -0700)
config.h.in
configure
configure.ac
plugins/sudoers/getspwuid.c

index b090672b0533a7e390aef42cebee49856ea130b9..8238235842a6b4832b26c8bc8676a294806add3b 100644 (file)
    passwords). */
 #undef HAVE_GETSPNAM
 
-/* Define to 1 if you have the `getspwuid' function. (HP-UX <= 9.X shadow
-   passwords). */
-#undef HAVE_GETSPWUID
-
 /* Define to 1 if you have the `getttyent' function. */
 #undef HAVE_GETTTYENT
 
index 758d41e428df8ea770241083f7c3c2617b4faf37..015043a6a0d8a04932f2a195815a8d9c55e6d009 100755 (executable)
--- a/configure
+++ b/configure
@@ -15092,31 +15092,6 @@ $as_echo "$sudo_cv_var_daportable" >&6; }
                esac
 
                case "$host_os" in
-                       hpux9.*)
-                           shadow_funcs="getspwuid"
-
-                           # DCE support (requires ANSI C compiler)
-                           if test "$with_DCE" = "yes"; then
-                               # order of libs in 9.X is important. -lc_r must be last
-                               SUDOERS_LIBS="${SUDOERS_LIBS} -ldce -lM -lc_r"
-                               LIBS="${LIBS} -ldce -lM -lc_r"
-                               $as_echo "#define _REENTRANT 1" >>confdefs.h
-
-
-    case "${CPPFLAGS}" in
-       *"-I/usr/include/reentrant"|*"-I/usr/include/reentrant ")
-           ;;
-       *)
-           if test X"${CPPFLAGS}" = X""; then
-               CPPFLAGS="-I/usr/include/reentrant"
-           else
-               CPPFLAGS="${CPPFLAGS} -I/usr/include/reentrant"
-           fi
-           ;;
-    esac
-
-                           fi
-                       ;;
                        hpux10.*)
                            shadow_funcs="getprpwnam iscomsec"
                            shadow_libs="-lsec"
@@ -26768,6 +26743,5 @@ fi
 
 
 
-
 
 
index 664a2997270827b609101dcd2ae492f2f3e77a8b..8baff3466a08975c37663bf0583a3e958a6ea4d2 100644 (file)
@@ -1851,18 +1851,6 @@ case "$host" in
                esac
 
                case "$host_os" in
-                       hpux9.*)
-                           shadow_funcs="getspwuid"
-
-                           # DCE support (requires ANSI C compiler)
-                           if test "$with_DCE" = "yes"; then
-                               # order of libs in 9.X is important. -lc_r must be last
-                               SUDOERS_LIBS="${SUDOERS_LIBS} -ldce -lM -lc_r"
-                               LIBS="${LIBS} -ldce -lM -lc_r"
-                               AC_DEFINE(_REENTRANT)
-                               SUDO_APPEND_CPPFLAGS(-I/usr/include/reentrant)
-                           fi
-                       ;;
                        hpux10.*)
                            shadow_funcs="getprpwnam iscomsec"
                            shadow_libs="-lsec"
@@ -4315,7 +4303,6 @@ AH_TEMPLATE(HAVE_FWTK, [Define to 1 if you use the FWTK authsrv daemon.])
 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).])
-AH_TEMPLATE(HAVE_GETSPWUID, [Define to 1 if you have the `getspwuid' function. (HP-UX <= 9.X shadow passwords).])
 AH_TEMPLATE(HAVE_GSS_KRB5_CCACHE_NAME, [Define to 1 if you have the `gss_krb5_ccache_name' function.])
 AH_TEMPLATE(HAVE_HEIMDAL, [Define to 1 if your Kerberos is Heimdal.])
 AH_TEMPLATE(HAVE_INET_NTOP, [Define to 1 if you have the `inet_ntop' function.])
index 0b428f4fcf6f22e677d45871345b146d26e9494a..55020aa46406d3b1200b2734f85c237f31bfa4dd 100644 (file)
@@ -101,14 +101,6 @@ sudo_getepw(const struct passwd *pw)
            epw = spw->sp_pwdp;
     }
 #endif /* HAVE_GETSPNAM */
-#ifdef HAVE_GETSPWUID
-    {
-       struct s_passwd *spw;
-
-       if ((spw = getspwuid(pw->pw_uid)) && spw->pw_passwd)
-           epw = spw->pw_passwd;
-    }
-#endif /* HAVE_GETSPWUID */
 #ifdef HAVE_GETPWANAM
     {
        struct passwd_adjunct *spw;
@@ -136,9 +128,6 @@ sudo_setspent(void)
 #ifdef HAVE_GETSPNAM
     setspent();
 #endif
-#ifdef HAVE_GETSPWUID
-    setspwent();
-#endif
 #ifdef HAVE_GETPWANAM
     setpwaent();
 #endif
@@ -156,9 +145,6 @@ sudo_endspent(void)
 #ifdef HAVE_GETSPNAM
     endspent();
 #endif
-#ifdef HAVE_GETSPWUID
-    endspwent();
-#endif
 #ifdef HAVE_GETPWANAM
     endpwaent();
 #endif