Mailing List Archive

Better login.c patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Apply this patch to login.c if you are having difficulty compiling.
This replaces the previous patch I sent.

Regards,
Damien Miller

- --
| "Bombay is 250ms from New York in the new world order" - Alan Cox
| Damien Miller - http://www.mindrot.org/
| Email: djm@mindrot.org (home) -or- djm@ibs.com.au (work)


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE4YDZsormJ9RG1dI8RAhvkAJwJOUteyZBqQTkMOFeRg/wZh8HjbACdFgsE
+WAB91OJF+TLuG8uOcNhrt8=
=Rj1b
-----END PGP SIGNATURE-----
re: Better Login.c Patch [ In reply to ]
Seems there might be a bug in the patch. I believe the first #endif below
should actually be an #else

+#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 */


Also, on Solaris 2.6 it seems you must specify --with-utmpx on your
./configure command or the program will fail to compile in bsd-login.c due
to ut_host not being defined. I don't know if this is a bug or an
oversight on my part.

->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<
James Thompson 138 Cardwell Hall Manhattan, Ks 66506 785-532-0561
Kansas State University Department of Mathematics
->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<
re: Better Login.c Patch [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 23 Dec 1999, James Thompson wrote:

> Also, on Solaris 2.6 it seems you must specify --with-utmpx on
> your ./configure command or the program will fail to compile in
> bsd-login.c due to ut_host not being defined. I don't know if this
> is a bug or an oversight on my part.

Probably my fault. I am going to release pre20 today which
includes Ben Taylor's cleanup of the utmp/utmpx stuff.

Damien

- --
| "Bombay is 250ms from New York in the new world order" - Alan Cox
| Damien Miller - http://www.mindrot.org/
| Email: djm@mindrot.org (home) -or- djm@ibs.com.au (work)


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE4YqfGormJ9RG1dI8RArL/AKCP+DHg2VwW8Z1FUlV9vg/3XHpfxQCcDy6h
v/RURrDivwI9B59Xr7XgBuQ=
=ZzWL
-----END PGP SIGNATURE-----