Better Login.c Patch

James Thompson jamest at math.ksu.edu
Fri Dec 24 08:48:26 EST 1999


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
->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<







More information about the openssh-unix-dev mailing list