freebsd-dev/tools/3.0-upgrade
Jordan K. Hubbard 1130b656e5 Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
..
cvt-wtmp.c Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
Makefile Add a -f (`force') option to cvt-wtmp. This might help people with 1997-01-02 11:54:59 +00:00
README Add a -f (`force') option to cvt-wtmp. This might help people with 1997-01-02 11:54:59 +00:00

By 1996/12/04, the utmp element size has been changed, in order to
allow for longer usernames.  This change renders all existing wtmp
files unusable.  The cvt-wtmp utility is provided as an aid to convert
your old wtmp files into the new format, so you don't lose the
existing track record.

The tool cannot handle gzip'ed wtmp backups, so unzip them first if
you need.  Then simply call it as:

	./cvt-tmp /var/log/wtmp*

The old wtmp files are being renamed to <file>.bak, so nothing will be
lost even in case of a failure.  If you are only about to test whether
the tool will grok your files correctly, you can run it as:

	./cvs-tmp -n /var/log/wtmp*

The tool tries an ``educated guess'', based on the reasonability of
the timestamp values in the wtmp file.  If it fails to recognize the
format of your wtmp, it normally bails out, or at least ignores
garbage records.  In this case, rename the .bak files to the original
name, and try to force the conversion:

	./cvs-tmp -f /var/log/wtmp.xxx

Make sure to verify the result however!


Dresden, Jan 2, 1996			Joerg  <joerg@freebsd.org>