[Pkg-shadow-commits] r2816 - upstream/trunk
Nicolas FRANÇOIS
nekral-guest at alioth.debian.org
Mon Apr 27 20:03:48 UTC 2009
Author: nekral-guest
Date: 2009-04-27 20:03:48 +0000 (Mon, 27 Apr 2009)
New Revision: 2816
Modified:
upstream/trunk/ChangeLog
upstream/trunk/NEWS
upstream/trunk/configure.in
Log:
* NEWS, configure.in: Added configure option --enable-utmpx,
disabled by default. This defines USE_UTMPX, which should be used
instead of HAVE_UTMPX_H.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2009-04-27 19:56:34 UTC (rev 2815)
+++ upstream/trunk/ChangeLog 2009-04-27 20:03:48 UTC (rev 2816)
@@ -1,5 +1,11 @@
2009-04-27 Nicolas François <nicolas.francois at centraliens.net>
+ * NEWS, configure.in: Added configure option --enable-utmpx,
+ disabled by default. This defines USE_UTMPX, which should be used
+ instead of HAVE_UTMPX_H.
+
+2009-04-27 Nicolas François <nicolas.francois at centraliens.net>
+
* man/po/fr.po: Fix typo.
2009-04-26 Nicolas François <nicolas.francois at centraliens.net>
Modified: upstream/trunk/NEWS
===================================================================
--- upstream/trunk/NEWS 2009-04-27 19:56:34 UTC (rev 2815)
+++ upstream/trunk/NEWS 2009-04-27 20:03:48 UTC (rev 2816)
@@ -4,6 +4,8 @@
- packaging
* Enable --enable-account-tools-setuid by default for PAM builds.
+ * Added configure option --enable-utmpx, disabled by default to mimic
+ the previous behavior on Linux (where utmp and utmpx are identical).
- login
* Do not trust the current utmp entry's ut_line to set PAM_TTY. This could
lead to DOS attacks.
Modified: upstream/trunk/configure.in
===================================================================
--- upstream/trunk/configure.in 2009-04-27 19:56:34 UTC (rev 2815)
+++ upstream/trunk/configure.in 2009-04-27 20:03:48 UTC (rev 2816)
@@ -212,7 +212,7 @@
[AC_HELP_STRING([--enable-man],
[regenerate roff man pages from Docbook @<:@default=no@:>@])],
[enable_man="${enableval}"],
- [enable_man=no]
+ [enable_man="no"]
)
AC_ARG_ENABLE(account-tools-setuid,
@@ -227,6 +227,17 @@
[enable_acct_tools_setuid="maybe"]
)
+AC_ARG_ENABLE(utmpx,
+ [AC_HELP_STRING([--enable-utmpx],
+ [enable loggin in utmpx / wtmpx @<:@default=no@:>@])],
+ [case "${enableval}" in
+ yes) enable_utmpx="yes" ;;
+ no) enable_utmpx="no" ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-utmpx) ;;
+ esac],
+ [enable_utmpx="no"]
+)
+
AC_ARG_WITH(audit,
[AC_HELP_STRING([--with-audit], [use auditing support @<:@default=yes if found@:>@])],
[with_audit=$withval], [with_audit=maybe])
@@ -470,6 +481,15 @@
],[AC_DEFINE(SKEY_BSD_STYLE, 1, [Define to support newer BSD S/Key API])])
fi
+if test "$enable_utmpx" = "yes"; then
+ if test "$ac_cv_header_utmpx_h" != "yes"; then
+ AC_MSG_ERROR([The utmpx.h header file is required for utmpx support.])
+ fi
+ AC_DEFINE(USE_UTMPX,
+ 1,
+ [Define if utmpx should be used])
+fi
+
AM_GNU_GETTEXT_VERSION(0.16)
AM_GNU_GETTEXT([external], [need-ngettext])
AM_CONDITIONAL(USE_NLS, test "x$USE_NLS" = "xyes")
More information about the Pkg-shadow-commits
mailing list