Subject: Re: problem with 'w' after recent rebuild?
To: None <alasdair@wildcat.demon.co.uk, current-users@NetBSD.ORG>
From: Mike Long <mike.long@analog.com>
List: current-users
Date: 01/08/1997 17:29:35
>Date: Wed, 8 Jan 1997 13:11:17 -0800
>From: greywolf@siva.captech.com (Grey Wolf)

>Alasdair Baird sez:
>/*
> * I've seen much the same---it seems that kvm_mkdb isn't rebuilding
> * the kvm.db when it should.  You need to manually `rm /var/db/kvm.db'
> * before rerunning kvm_mkdb again and all will be fine, until next
> * time at least.  I haven't looked into why this isn't happening, yet.
>
>...so what's wrong with throwing the line
>
>	unlink("/var/db/kvm.db");	/* or its _PATH_ constant */
>	/* or (f)truncate() it? */
>
>into kvm_mkdb.c (or wherever)?

It's much easier to add 'rm /var/db/kvm.db' at the appropriate point
in /etc/rc until kvm_mkdb is fixed.

See PR bin/1778 for some more info on this particular problem.
-- 
Mike Long <mike.long@analog.com>     <URL:http://www.shore.net/~mikel>
VLSI Design Engineer         finger mikel@shore.net for PGP public key
Analog Devices, CPD Division          CCBF225E7D3F7ECB2C8F7ABB15D9BE7B
Norwood, MA 02062 USA       (eq (opinion 'ADI) (opinion 'mike)) -> nil