Thank you Masand! I checked out your work on http://masand.sourceforge.net
and with your excellent progress I was able to complete
a small utility that will purge all the users on invalid lines from my utmp file. I owe it all to you, I would not have known where to start otherwise. Thank you! OSS is the greatest.