diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-07-15 13:17:49 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-07-15 13:17:49 +0000 |
commit | 2c51232f12fcfb70f8fde104948760fcd8d39a5c (patch) | |
tree | 33c929ca721c831bb2f3c3a029bf9ad15dd20485 /mandocdb.c | |
parent | 5061b78c754ac78dd9302b31acfbb5227a2d3a54 (diff) | |
download | mandoc-2c51232f12fcfb70f8fde104948760fcd8d39a5c.tar.gz |
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@.
Diffstat (limited to 'mandocdb.c')
-rw-r--r-- | mandocdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |