summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2014-08-21 20:27:03 +0000
committerschwarze <schwarze@openbsd.org>2014-08-21 20:27:03 +0000
commit17a213c6377b59deb46a8e73357e984cef706d98 (patch)
tree21401372d6cf3ba207e9bc51b387f0625d418114
parentAdd Last-Modified: HTTP header. (diff)
downloadwireguard-openbsd-17a213c6377b59deb46a8e73357e984cef706d98.tar.xz
wireguard-openbsd-17a213c6377b59deb46a8e73357e984cef706d98.zip
Bugfix: make whatis(1) case-insensitive again.
The traditional whatis(1) was case-insensitve and it's still documented that way, that but apparently got broken with or after the switch.
-rw-r--r--usr.bin/mandoc/mansearch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mandoc/mansearch.c b/usr.bin/mandoc/mansearch.c
index 32fb2d9fe6b..8cc8e6ee9ad 100644
--- a/usr.bin/mandoc/mansearch.c
+++ b/usr.bin/mandoc/mansearch.c
@@ -1,4 +1,4 @@
-/* $Id: mansearch.c,v 1.31 2014/08/09 14:24:49 schwarze Exp $ */
+/* $Id: mansearch.c,v 1.32 2014/08/21 20:27:03 schwarze Exp $ */
/*
* Copyright (c) 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -769,6 +769,7 @@ exprterm(const struct mansearch *search, char *buf, int cs)
if (MANSEARCH_WHATIS & search->flags) {
e->substr = NULL;
mandoc_asprintf(&val, "[[:<:]]%s[[:>:]]", buf);
+ cs = 0;
}
if (NULL == e->substr) {