Cimarron Ryan writes:
  : http://www.replay.com/redhat/ssh.html
  : 
  : Down at the very bottom of the page.

--quote--
Remove the line: 
#define HAVE_UTMPX_H 1 
in config.h and apply this patch to login.c to get 1.2.26 to compile under
RedHat 6.0: 

*** login.c.dist        Wed Jul  8 09:40:36 1998
--- login.c     Fri Apr 30 14:43:33 1999
***************
*** 434,440 ****
      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--- 434,439 ----
--end quote--

Why is it needed to remove the HAVE_UTMPX_H definition? I just
compiled ssh2 with and without that removed in sshconf.h (equivalent
to config.h in ssh1) and there was nothing that would've suggested a
change in ssh's behaviour.

(Obviously I had to patch ssh2 a bit, because vanilla ssh-2.0.12
doesn't compile with glibc-2.1.)

-- 
[[EMAIL PROTECTED]           --  Sami J. Lehtinen  --           [EMAIL PROTECTED]]
[work:+358 9 43543214][gsm:+358 50 5170 258][http://www.iki.fi/~sjl]
[SSH Communications Security Ltd.                http://www.ssh.fi/]

Reply via email to