FreeBSD 2.2.1 /PPP 2.2.0 and mgetty 1.0.0 or 1.1.5: wtmp and connection problems
Christoph Kukulies (kuku@gilberto.physik.rwth-aachen.de)
Tue, 22 Apr 1997 10:28:01 +0200 (MET DST)
> Hi,
>
> Christoph Kukulies wrote:
> > >
[ stripped a bit]
> > > 1. In my wtmp; whenever I give a 'last', there are always 2 entries:
> > > Now, AutoPPP stays logged in for ever, the real user gets logged out.
> > > Anyone have a clue? Is that FreeBSD behaving wildly?
[ stripped a bit]
> >
> > Programs that use utmp/wtmp need to be recompiled under FreeBSD-2.2.1
> > due to massive changes to the wtmp/utmp mechanism. Old binaries can mess up
> > /var/log/wtmp.
>
> Ah. Thanks for that infos.
>
> Has something on the source level changed as well, or only binary?
Some entries have changed their lengths and in consequence of this
the binary format has changed. From utmp.h:
#define UT_NAMESIZE 16 /* see MAXLOGNAME in <sys/param.h> */
#define UT_LINESIZE 8
#define UT_HOSTSIZE 16
struct lastlog {
time_t ll_time;
char ll_line[UT_LINESIZE];
char ll_host[UT_HOSTSIZE];
};
struct utmp {
char ut_line[UT_LINESIZE];
char ut_name[UT_NAMESIZE];
char ut_host[UT_HOSTSIZE];
long ut_time;
};
I just tried the FreeBSD 2.2.1 port - the patches applied by the ports build
automatism don't seems to contain any utmp specific changes.
mgetty-1.0.0 compiles (at least) fine. In consequence of this the binary
format of the files has changed. There is a utility to convert old wtmp
files to the new format (cvt-wtmp).
> gert
>
> --
> USENET is *not* the non-clickable part of WWW!
> //www.muc.de/~gert/
> Gert Doering - Munich, Germany gert@greenie.muc.de
> fax: +49-89-3545980 gert.doering@physik.tu-muenchen.de
>
--
Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de
.