ANNOUNCE: openssh-1.2.1pre19
Damien Miller
djm at mindrot.org
Wed Dec 22 13:13:19 EST 1999
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 21 Dec 1999, Willard Dawson wrote:
> And here's a bug report:
... and here's a fix (hopefully)
Could you send me a copy of the config.h that autoconf generates for
you?
Regards,
Damien Miller
- --
| "Bombay is 250ms from New York in the new world order" - Alan Cox
| Damien Miller - http://www.mindrot.org/
| Email: djm at mindrot.org (home) -or- djm at ibs.com.au (work)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE4YDPOormJ9RG1dI8RAirSAKC9B3GXeE43nwkgREvFMeR0Oq1GDQCfThZn
iyjtuRPKhAbQMSokmvHrc6s=
=bzeK
-----END PGP SIGNATURE-----
-------------- next part --------------
Index: login.c
===================================================================
RCS file: /var/cvs/openssh/login.c,v
retrieving revision 1.9
diff -u -r1.9 login.c
--- login.c 1999/12/21 10:30:56 1.9
+++ login.c 1999/12/22 02:11:51
@@ -101,10 +101,14 @@
if ( wt.ut_type == USER_PROCESS) {
if ( !strncmp(logname, wt.ut_user, 8) ) {
t = (unsigned long) wt.ut_time;
+#ifdef HAVE_HOST_IN_UTMP
if (bufsize > sizeof(wt.ut_host) + 1)
bufsize = sizeof(wt.ut_host) + 1;
strncpy(buf, wt.ut_host, bufsize - 1);
buf[bufsize - 1] = 0;
+#endif /* HAVE_HOST_IN_UTMP */
+ buf[0] = 0;
+#endif /* HAVE_HOST_IN_UTMP */
}
}
More information about the openssh-unix-dev
mailing list