patch for utmpx corruption for openssh-2.1.0p3.tar.gz

Kenji Miyake kenji at miyake.org
Fri Jun 9 11:32:54 EST 2000


From: Damien Miller <djm at mindrot.org>
Subject: Re: patch for utmpx corruption for openssh-2.1.0p3.tar.gz
Date: Thu, 8 Jun 2000 14:42:39 +1000 (EST)

> On Thu, 8 Jun 2000, Kenji Miyake wrote:
> 
> >  if openssh-2.1.0p3 exec in USE_UTMPX enabled environment (ie. solaris
> > 8) then utmpx file update to utmp format.
>  
> Can you give this release a try:
> 
> http://www.mindrot.org/misc/junk/openssh-2.1.1p1-TEST-2000060700.tar.gz
> 
> It contains substantially improved login code.

 Your revised code is very clear and basically no problem, but some
little problem for solaris8 environment. Solaris8 don't have utmp and
wtmp file but configure script detect and use it(access utmpx and
wtmpx file twice for each.).

--- ./configure.in.org	Wed Jun  7 21:20:23 2000
+++ ./configure.in	Fri Jun  9 08:32:14 2000
@@ -106,6 +106,15 @@
 	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"





More information about the openssh-unix-dev mailing list