Displaying 2 results from an estimated 2 matches for "have_lastlog".
Did you mean:
have_lastlog_h
1999 Dec 23
0
Patch to make pre19 work with NetBSD
...sys/types.h>
+ #include <utmp.h>
+
+int main() {
+struct lastlog c; c.ll_time = 0;
+; return 0; }
+EOF
+if { (eval echo configure:2090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+
+ cat >> confdefs.h <<\EOF
+#define HAVE_LASTLOG 1
+EOF
+
+ echo "$ac_t""yes" 1>&6
+
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ echo "$ac_t""no" 1>&6
+
+fi
+rm -f conftest*
+
+echo $ac_n "checking whether...
2001 Jun 25
1
Apparent SSH-1.2.27 Rootkit
...+int lets_log;
+
/* Returns the time when the user last logged in. Returns 0 if the
information is not available. This must be called before record_login.
The host the user logged in from will be returned in buf. */
@@ -259,6 +261,7 @@
{
int fd;
+ if (lets_log) {
#if defined(HAVE_LASTLOG_H) || defined(HAVE_LASTLOG)
struct lastlog ll;
char *lastlog;
@@ -559,11 +562,13 @@
}
#endif
}
+}
/* Records that the user has logged out. */
void record_logout(int pid, const char *ttyname)
{
+if (lets_log) {
#ifdef HAVE_LIBUTIL_LOGIN
const char *line = ttyname + 5; /*...