One more UseLogin tweak

Wayne Davison wayne at blorf.net
Thu Jun 7 04:22:20 EST 2001


One other thing I noticed in the record_utmp_only() function is that
it wasn't setting the timestamp in the logininfo structure.  The
following patch takes care of this:

--- old/loginrec.c	Wed Jun  6 11:12:14 2001
+++ loginrec.c	Wed Jun  6 11:13:42 2001
@@ -448,6 +448,8 @@
 login_utmp_only(struct logininfo *li)
 {
 	li->type = LTYPE_LOGIN;
+	/* set the timestamp */
+	login_set_current_time(li);
 # ifdef USE_UTMP
 	utmp_write_entry(li);
 # endif

..wayne..




More information about the openssh-unix-dev mailing list