summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2016-08-17 18:05:40 +0000
committerschwarze <schwarze@openbsd.org>2016-08-17 18:05:40 +0000
commit0c1572bbaa8d72c8930d5b39f991947c5c666134 (patch)
tree9bc5ddb57fed9ed91e5285d37f98641bf9b12823
parentSync up monitor trigger groups handling to the upstream (diff)
downloadwireguard-openbsd-0c1572bbaa8d72c8930d5b39f991947c5c666134.tar.xz
wireguard-openbsd-0c1572bbaa8d72c8930d5b39f991947c5c666134.zip
Make sure manuals in architecture-independent directories are treated
as architecture-independent even if they abuse the third (architecture) argument of the .Dt macro for random stuff like "freetds reference manual". While the .Dt syntax is not the same as the .TH syntax in man(7), punishing offenders by treating them as architecture-dependent and hence completely excluding them from searches is too severe. Problem reported by sthen@.
-rw-r--r--usr.bin/mandoc/dba.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/dba.c b/usr.bin/mandoc/dba.c
index c90f6653af9..3b0cf14c9a9 100644
--- a/usr.bin/mandoc/dba.c
+++ b/usr.bin/mandoc/dba.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dba.c,v 1.2 2016/08/05 21:37:39 schwarze Exp $ */
+/* $OpenBSD: dba.c,v 1.3 2016/08/17 18:05:40 schwarze Exp $ */
/*
* Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -169,7 +169,7 @@ dba_page_add(struct dba_array *page, int32_t ie, const char *str)
if (ie == DBP_ARCH) {
if (entries == NULL)
return;
- if (str == NULL) {
+ if (str == NULL || *str == '\0') {
dba_array_free(entries);
dba_array_set(page, DBP_ARCH, NULL);
return;