In update mode, when opening the database fails, probably because it is
authorschwarze <schwarze@openbsd.org>
Fri, 18 Apr 2014 21:54:48 +0000 (21:54 +0000)
committerschwarze <schwarze@openbsd.org>
Fri, 18 Apr 2014 21:54:48 +0000 (21:54 +0000)
commita3d69d4af53ec859d1df0a15505cc9d90ae71abb
treee38bed033555c1ee85aedb3529376f822b3509e6
parent83f7510045ea301c56fdb43d1c70f68f2c3e88f1
In update mode, when opening the database fails, probably because it is
missing or corrupt, just rebuild it from scratch.  This also helps when
installing the very first port on a freshly installed machine
and is similar to what espie@'s classical makewhatis(8) did.

Issue reported by naddy@ via kili@.
usr.bin/mandoc/mandocdb.c