From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id cc2705e3 for ; Mon, 22 Aug 2016 11:15:56 -0500 (EST) Date: Mon, 22 Aug 2016 11:15:56 -0500 (EST) Message-Id: <1505398257803916488.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: When trying to edit an existing database with makewhatis(8) -d X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- When trying to edit an existing database with makewhatis(8) -d or -u but reading the database fails, report the full path to the database on standard error, and mention that the database is automatically recreated from scratch. Suggested by espie@. Modified Files: -------------- mdocml: mandocdb.c Revision Data ------------- Index: mandocdb.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/mandocdb.c,v retrieving revision 1.227 retrieving revision 1.228 diff -Lmandocdb.c -Lmandocdb.c -u -p -r1.227 -r1.228 --- mandocdb.c +++ mandocdb.c @@ -448,10 +448,10 @@ mandocdb(int argc, char *argv[]) if (nodb == 0) dbprune(dba); } else { - /* - * Database missing or corrupt. - * Recreate from scratch. - */ + /* Database missing or corrupt. */ + say(MANDOC_DB, + "%s: Automatically recreating from scratch", + strerror(errno)); exitcode = (int)MANDOCLEVEL_OK; op = OP_DEFAULT; if (0 == treescan()) -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv