Hi folks,

The patch below might help.  Similar things can be done for ssh2.

HTH.  Cheers,
                                        Christian

--- ssh-1.2.26/config.h.in.chris        Tue Apr 13 22:09:01 1999
+++ ssh-1.2.26/config.h.in      Tue Apr 13 22:09:42 1999
@@ -10,6 +10,10 @@ Copyright (c) 1995 Tatu Ylonen <[EMAIL PROTECTED]
 */


+#ifdef linux
+#define _GNU_SOURCE
+#endif
+
 /* Define to empty if the keyword does not work.  */
 #undef const

--- ssh-1.2.26/login.c.chris    Tue Apr 13 22:24:08 1999
+++ ssh-1.2.26/login.c  Tue Apr 13 22:24:44 1999
@@ -434,7 +434,6 @@ void record_login(int pid, const char *t
     ux.ut_session = pid;
     strncpy(ux.ut_host, host, sizeof(ux.ut_host));
     ux.ut_host[sizeof(ux.ut_host) - 1] = 0;
-    ux.ut_syslen = strlen(ux.ut_host);
 #ifdef HAVE_SYSLEN_IN_UTMPX
     ux.ut_syslen = strlen(ux.ut_host);
 #endif

Reply via email to