source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Do not warn if a database file does not exist  because that is
@ 2017-05-17 21:20 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2017-05-17 21:20 UTC (permalink / raw)
  To: source

Log Message:
-----------
Do not warn if a database file does not exist 
because that is simply equivalent to an empty database.
Suggested by ajacoutot@

Modified Files:
--------------
    mdocml:
        mansearch.c

Revision Data
-------------
Index: mansearch.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/mansearch.c,v
retrieving revision 1.72
retrieving revision 1.73
diff -Lmansearch.c -Lmansearch.c -u -p -r1.72 -r1.73
--- mansearch.c
+++ 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;
 		}
 
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-05-17 21:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-17 21:20 mdocml: Do not warn if a database file does not exist because that is schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).