From 32c80420e3f9ebaca9dfb8a4425a95f3144d84c0 Mon Sep 17 00:00:00 2001 From: djm Date: Fri, 9 Jun 2000 01:58:35 +0000 Subject: [PATCH] - (djm) Patch from Kenji Miyake to disable utmp usage (in favour of utmpx) on Solaris 8 --- CREDITS | 1 + ChangeLog | 4 ++++ configure.in | 9 +++++++++ 3 files changed, 14 insertions(+) diff --git a/CREDITS b/CREDITS index c59babe7..f95260e8 100644 --- a/CREDITS +++ b/CREDITS @@ -35,6 +35,7 @@ Jim Knoble - Many patches jonchen (email unknown) - the original author of PAM support of SSH Juergen Keil - scp bugfixing Kees Cook - scp fixes +Kenji Miyake - Configure fixes Kevin O'Connor - RSAless operation Kiyokazu SUTO - Bugfixes Lutz Jaenicke - Bugfixes diff --git a/ChangeLog b/ChangeLog index 8da1f822..662f9cbd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +20000609 + - (djm) Patch from Kenji Miyake to disable utmp usage + (in favour of utmpx) on Solaris 8 + 20000606 - (djm) Cleanup of entropy.c. Reorganised code, removed second pass through list of commands (by default). Removed verbose debugging (by default). diff --git a/configure.in b/configure.in index a886fbbd..9eb38393 100644 --- a/configure.in +++ b/configure.in @@ -106,6 +106,15 @@ case "$host" in need_dash_r=1 # hardwire lastlog location (can't detect it on some versions) conf_lastlog_location="/var/adm/lastlog" + AC_MSG_CHECKING(for obsolete utmp and wtmp in solaris2.x) + sol2ver=`echo "$host"| sed -e 's/.*[[0-9]]\.//'` + if test "$sol2ver" -ge 8; then + AC_MSG_RESULT(yes) + AC_DEFINE(DISABLE_UTMP) + AC_DEFINE(DISABLE_WTMP) + else + AC_MSG_RESULT(no) + fi ;; *-*-sunos4*) CFLAGS="$CFLAGS -DSUNOS4" -- 2.45.1