if openssh-2.1.0p3 exec in USE_UTMPX enabled environment (ie. solaris 8) then utmpx file update to utmp format. --- ./bsd-login.c.org Sat May 20 14:03:00 2000 +++ ./bsd-login.c Thu Jun 8 01:33:43 2000 @@ -148,10 +148,11 @@ if (utp->ut_type == USER_PROCESS) { #ifdef USE_UTMPX if ((fd = open(_PATH_UTMPX, O_WRONLY|O_APPEND, 0)) >= 0) { + (void)write(fd, utx, sizeof(struct utmpx)); #else /* USE_UTMPX */ if ((fd = open(_PATH_UTMP, O_WRONLY|O_APPEND, 0)) >= 0) { -#endif /* USE_UTMPX */ (void)write(fd, utp, sizeof(struct utmp)); +#endif /* USE_UTMPX */ (void)close(fd); } } else {
On Thu, 8 Jun 2000, Kenji Miyake wrote:> if openssh-2.1.0p3 exec in USE_UTMPX enabled environment (ie. solaris > 8) then utmpx file update to utmp format.Can you give this release a try: http://www.mindrot.org/misc/junk/openssh-2.1.1p1-TEST-2000060700.tar.gz It contains substantially improved login code. -d -- | "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)
Chip Christian
2000-Jun-09 15:10 UTC
patch for utmpx corruption for openssh-2.1.0p3.tar.gz
No problems so far on a handful of 2.6 boxen. I take it this should also fix the utmp curruption reported by Lukas Karrer? http://marc.theaimsgroup.com/?l=openssh-unix-dev&m=95959541620508&w=2> On Thu, 8 Jun 2000, Kenji Miyake wrote: > > > if openssh-2.1.0p3 exec in USE_UTMPX enabled environment (ie. solaris > > 8) then utmpx file update to utmp format. > > Can you give this release a try: > > http://www.mindrot.org/misc/junk/openssh-2.1.1p1-TEST-2000060700.tar.gz > > It contains substantially improved login code. > > -d > > -- > | "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) > > > > >