AIX and 2.1.1p1

Tom Bertelson tbert at abac.com
Wed Jun 14 00:18:45 EST 2000


Andre Lucas wrote:
> USE_LASTLOG isn't the opposite of DISABLE_LASTLOG. A bit confusing, I
> know. USE_LASTLOG means 'this system has some form of lastlog recording
> of its own so use it', whereas DISABLE_LASTLOG should mean 'don't even
> *try* to retrieve lastlog information from any source.'
> USE_SYSTEM_LASTLOG might be a better symbol name than USE_LASTLOG.

Your patch works fine with AIX - thanks!

The reason I wondered about the symbol names is because if configure
can't find a lastlog file anywhere, it sets DISABLE_LASTLOG.  It may be
nice in this default case to search wtmp, since presumably the OS
doesn't have a real lastlog facility.  --disable-lastlog could still be
used to override this.

Perhaps something like this? (untested):
--- configure.in.orig   Thu Jun  8 21:58:35 2000
+++ configure.in        Tue Jun 13 10:15:25 2000
@@ -1008,8 +1010,7 @@
                                fi
                done
                if test -z "$conf_lastlog_location"; then
-                       AC_MSG_WARN([** Cannot find lastlog - disabling feature **])
-                       AC_DEFINE(DISABLE_LASTLOG)
+                       AC_MSG_WARN([** Cannot find lastlog - resorting to wtmp search **])
                fi
        fi
 fi

-- 
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