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

index 8238235842a6b4832b26c8bc8676a294806add3b..0fb1b98e2147567459639642d7a9ba2ccd39a6ec 100644 (file)
    passwords). */
 #undef HAVE_GETPRPWNAM
 
-/* Define to 1 if you have the `getpwanam' function. (SunOS 4.x shadow
-   passwords). */
-#undef HAVE_GETPWANAM
-
 /* Define to 1 if you have the `getresuid' function. */
 #undef HAVE_GETRESUID
 
    shadow enabled). */
 #undef HAVE_ISCOMSEC
 
-/* Define to 1 if you have the `issecure' function. (SunOS 4.x check for
-   shadow enabled). */
-#undef HAVE_ISSECURE
-
 /* Define to 1 if you use Kerberos V. */
 #undef HAVE_KERB5
 
index 015043a6a0d8a04932f2a195815a8d9c55e6d009..d7e74c5515de05f62641d9a28e8436dcb328ab4a 100755 (executable)
--- a/configure
+++ b/configure
@@ -638,10 +638,10 @@ ac_func_list=
 ac_c_werror_flag=
 ac_subst_vars='LTLIBOBJS
 KRB5CONFIG
+LIBOBJS
 FLEX
 YFLAGS
 YACC
-LIBOBJS
 NROFFPROG
 MANDOCPROG
 TRPROG
@@ -14794,34 +14794,6 @@ else
 fi
 
 case "$host" in
-    *-*-sunos4*)
-               # LD_PRELOAD is space-delimited
-               RTLD_PRELOAD_DELIM=" "
-
-               # getcwd(3) opens a pipe to getpwd(1)!?!
-               case " $LIBOBJS " in
-  *" getcwd.$ac_objext "* ) ;;
-  *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
- ;;
-esac
-
-
-    for _sym in sudo_getcwd; do
-       COMPAT_EXP="${COMPAT_EXP}${_sym}
-"
-    done
-
-               $as_echo "#define PREFER_PORTABLE_GETCWD 1" >>confdefs.h
-
-
-               # system headers lack prototypes but gcc helps...
-               if test -n "$GCC"; then
-                   $as_echo "#define __USE_FIXED_PROTOTYPES__ 1" >>confdefs.h
-
-               fi
-
-               shadow_funcs="getpwanam issecure"
-               ;;
     *-*-solaris2*)
                $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
 
@@ -26740,8 +26712,6 @@ fi
 
 
 
-
-
 
 
 
index 8baff3466a08975c37663bf0583a3e958a6ea4d2..fef8d5b5e1bd0b2728eab4f5efdacc7be7a96531 100644 (file)
@@ -1677,22 +1677,6 @@ else
 fi
 
 case "$host" in
-    *-*-sunos4*)
-               # LD_PRELOAD is space-delimited
-               RTLD_PRELOAD_DELIM=" "
-
-               # getcwd(3) opens a pipe to getpwd(1)!?!
-               AC_LIBOBJ(getcwd)
-               SUDO_APPEND_COMPAT_EXP(sudo_getcwd)
-               AC_DEFINE(PREFER_PORTABLE_GETCWD)
-
-               # system headers lack prototypes but gcc helps...
-               if test -n "$GCC"; then
-                   AC_DEFINE([__USE_FIXED_PROTOTYPES__])
-               fi
-
-               shadow_funcs="getpwanam issecure"
-               ;;
     *-*-solaris2*)
                AC_DEFINE([PAM_SUN_CODEBASE])
 
@@ -4301,14 +4285,12 @@ AH_TEMPLATE(HAVE_FCNTL_CLOSEM, [Define to 1 if your system has the F_CLOSEM fcnt
 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_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_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.])
 AH_TEMPLATE(HAVE_INET_PTON, [Define to 1 if you have the `inet_pton' function.])
 AH_TEMPLATE(HAVE_ISCOMSEC, [Define to 1 if you have the `iscomsec' function. (HP-UX >= 10.x check for shadow enabled).])
-AH_TEMPLATE(HAVE_ISSECURE, [Define to 1 if you have the `issecure' function. (SunOS 4.x check for shadow enabled).])
 AH_TEMPLATE(HAVE_KERB5, [Define to 1 if you use Kerberos V.])
 AH_TEMPLATE(HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC, [Define to 1 if you have the `krb5_get_init_creds_opt_alloc' function.])
 AH_TEMPLATE(HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS, [Define to 1 if your `krb5_get_init_creds_opt_free' function takes two arguments.])
index 55020aa46406d3b1200b2734f85c237f31bfa4dd..7a8fc75e4bd39fb6511fc0862d5685debafdda2f 100644 (file)
 # endif /* __hpux */
 # include <prot.h>
 #endif /* HAVE_GETPRPWNAM */
-#ifdef HAVE_GETPWANAM
-# include <sys/label.h>
-# include <sys/audit.h>
-# include <pwdadj.h>
-#endif /* HAVE_GETPWANAM */
 
 #include "sudoers.h"
 
@@ -76,10 +71,6 @@ sudo_getepw(const struct passwd *pw)
     if (!iscomsec())
        goto done;
 #endif /* HAVE_ISCOMSEC */
-#ifdef HAVE_ISSECURE
-    if (!issecure())
-       goto done;
-#endif /* HAVE_ISSECURE */
 
 #ifdef HAVE_GETPRPWNAM
     {
@@ -101,16 +92,8 @@ sudo_getepw(const struct passwd *pw)
            epw = spw->sp_pwdp;
     }
 #endif /* HAVE_GETSPNAM */
-#ifdef HAVE_GETPWANAM
-    {
-       struct passwd_adjunct *spw;
-
-       if ((spw = getpwanam(pw->pw_name)) && spw->pwa_passwd)
-           epw = spw->pwa_passwd;
-    }
-#endif /* HAVE_GETPWANAM */
 
-#if defined(HAVE_ISCOMSEC) || defined(HAVE_ISSECURE)
+#if defined(HAVE_ISCOMSEC)
 done:
 #endif
     /* If no shadow password, fall back on regular password. */
@@ -127,9 +110,6 @@ sudo_setspent(void)
 #endif
 #ifdef HAVE_GETSPNAM
     setspent();
-#endif
-#ifdef HAVE_GETPWANAM
-    setpwaent();
 #endif
     debug_return;
 }
@@ -144,9 +124,6 @@ sudo_endspent(void)
 #endif
 #ifdef HAVE_GETSPNAM
     endspent();
-#endif
-#ifdef HAVE_GETPWANAM
-    endpwaent();
 #endif
     debug_return;
 }