AIX and 2.1.1p1
Tom Bertelson
tbert at abac.com
Tue Jun 13 07:45:33 EST 2000
The new login code works fine with AIX 4.3. Two nits, though. If
--disable-lastlog is defined, the code still tries to slog through wtmp
to determine the last login time. Is this a bug or a feature? If a
feature, change the DISABLE_LASTLOG test below to WITH_AIXAUTHENTICATE.
Also, a small typo in configure.in, plus an AIX tweak.
--- configure.in.orig Thu Jun 8 21:58:35 2000
+++ configure.in Mon Jun 12 16:27:54 2000
@@ -38,6 +38,8 @@
AC_DEFINE(BROKEN_GETADDRINFO)
dnl AIX handles lastlog as part of its login message
AC_DEFINE(DISABLE_LASTLOG)
+ MANTYPE='$(CATMAN)'
+ mansubdir=cat
;;
*-*-hpux10*)
if test -z "$GCC"; then
@@ -994,7 +996,7 @@
[ char *lastlog = _PATH_LASTLOG; ],
[ AC_MSG_RESULT(yes) ],
[
- AC_MSG_RESULT(no),
+ AC_MSG_RESULT(no)
system_lastlog_path=no
])
]
--- session.c.orig Mon Jun 12 16:52:59 2000
+++ session.c Mon Jun 12 16:54:24 2000
@@ -524,6 +524,9 @@
/* Get remote host name. */
hostname = get_canonical_hostname();
+#if defined(DISABLE_LASTLOG)
+ last_login_time = 0;
+#else
/*
* Get the time when the user last logged in. Buf will be set to
* contain the hostname the last login was from.
@@ -532,6 +535,7 @@
last_login_time = get_last_login_time(pw->pw_uid, pw->pw_name,
buf, sizeof(buf));
}
+#endif
#ifdef USE_PAM
do_pam_session(pw->pw_name, s->tty);
--
Tom Bertelson "Any sufficiently advanced technology
RHI Consulting is indistinguishable from magic."
tbert at abac.com -- Arthur C. Clarke
More information about the openssh-unix-dev
mailing list