Call for testing: OpenSSH-6.2

Damien Miller djm at mindrot.org
Fri Mar 8 17:59:18 EST 2013


On Thu, 7 Mar 2013, Dag-Erling Sm?rgrav wrote:

> The attached patch combines the DISABLE_{LASTLOG,UTMP,WTMP} logic above
> with additional code to disable the log file search.

That's probably a bit too extensive a patch for this stage of release,
but I think just the tests might be okay since they wouldn't break
anything that isn't already broken.

Index: configure.ac
===================================================================
RCS file: /var/cvs/openssh/configure.ac,v
retrieving revision 1.513
diff -u -p -r1.513 configure.ac
--- configure.ac	8 Mar 2013 01:14:23 -0000	1.513
+++ configure.ac	8 Mar 2013 06:32:22 -0000
@@ -4468,6 +4467,41 @@ if test ! -z "$blibpath" ; then
 	LDFLAGS="$LDFLAGS $blibflags$blibpath"
 	AC_MSG_WARN([Please check and edit blibpath in LDFLAGS in Makefile])
 fi
+
+AC_CHECK_MEMBER([struct lastlog.ll_line], [], [
+	AC_DEFINE([DISABLE_LASTLOG])
+	], [
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_UTMP_H
+#include <utmp.h>
+#endif
+#ifdef HAVE_UTMPX_H
+#include <utmpx.h>
+#endif
+#ifdef HAVE_LASTLOG_H
+#include <lastlog.h>
+#endif
+	])
+
+AC_CHECK_MEMBER([struct utmp.ut_line], [], [
+	AC_DEFINE([DISABLE_UTMP])
+	AC_DEFINE([DISABLE_WTMP])
+	], [
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_UTMP_H
+#include <utmp.h>
+#endif
+#ifdef HAVE_UTMPX_H
+#include <utmpx.h>
+#endif
+#ifdef HAVE_LASTLOG_H
+#include <lastlog.h>
+#endif
+	])
 
 dnl Adding -Werror to CFLAGS early prevents configure tests from running.
 dnl Add now.


More information about the openssh-unix-dev mailing list