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 be91f8d6 for ; Sat, 15 Jul 2017 08:18:19 -0500 (EST) Date: Sat, 15 Jul 2017 08:18:19 -0500 (EST) Message-Id: <18080036646889591715.enqueue@fantadrom.bsd.lv> X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: Improve rev. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Improve rev. 1.250 further: If a database is empty, we already don't write a database file and delete an existing one. If none exists, that only means the database was empty and remains so, which is not an error. So don't nag about it, in particular because that would be a weekly(8) annoyance. Issue reported by jmc@. Modified Files: -------------- mandoc: mandocdb.c Revision Data ------------- Index: mandocdb.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/mandocdb.c,v retrieving revision 1.251 retrieving revision 1.252 diff -Lmandocdb.c -Lmandocdb.c -u -p -r1.251 -r1.252 --- mandocdb.c +++ mandocdb.c @@ -2130,7 +2130,7 @@ dbwrite(struct dba *dba) dba_array_start(dba->pages); if (dba_array_next(dba->pages) == NULL) { - if (unlink(MANDOC_DB) == -1) + if (unlink(MANDOC_DB) == -1 && errno != ENOENT) say(MANDOC_DB, "&unlink"); return; } -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv