summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2019-07-15 21:40:28 +0000
committerschwarze <schwarze@openbsd.org>2019-07-15 21:40:28 +0000
commitaaa0a619e3681f3642e2a8b6a41a4fcf0ff52813 (patch)
tree832c3ce3569e5cacad9e552d0ca8a634d2e5b2d0
parentexplicitly reference the textproc/vgrind port; (diff)
downloadwireguard-openbsd-aaa0a619e3681f3642e2a8b6a41a4fcf0ff52813.tar.xz
wireguard-openbsd-aaa0a619e3681f3642e2a8b6a41a4fcf0ff52813.zip
don't print the final heads-up about message
when a search did not yield any manual pages to display; issue found with regress/usr.bin/mandoc/db/
-rw-r--r--usr.bin/mandoc/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mandoc/main.c b/usr.bin/mandoc/main.c
index 894aa429916..2d3425e0520 100644
--- a/usr.bin/mandoc/main.c
+++ b/usr.bin/mandoc/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.232 2019/07/14 18:14:27 schwarze Exp $ */
+/* $OpenBSD: main.c,v 1.233 2019/07/15 21:40:28 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2012, 2014-2019 Ingo Schwarze <schwarze@openbsd.org>
@@ -698,7 +698,8 @@ out:
signum = WSTOPSIG(status);
}
tag_unlink();
- } else if (curp.outtype != OUTT_LINT)
+ } else if (curp.outtype != OUTT_LINT &&
+ (search.argmode == ARG_FILE || sz > 0))
mandoc_msg_summary();
return (int)mandoc_msg_getrc();