summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mansearch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mansearch.c b/mansearch.c
index d7444137..26a7c23f 100644
--- a/mansearch.c
+++ b/mansearch.c
@@ -155,7 +155,8 @@ mansearch(const struct mansearch *search,
chdir_status = 1;
if (dbm_open(MANDOC_DB) == -1) {
- warn("%s/%s", paths->paths[i], MANDOC_DB);
+ if (errno != ENOENT)
+ warn("%s/%s", paths->paths[i], MANDOC_DB);
continue;
}