From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id e07c859a for ; Wed, 17 Aug 2016 13:11:09 -0500 (EST) Date: Wed, 17 Aug 2016 13:11:09 -0500 (EST) Message-Id: <6114246269221753857.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Make sure manuals in architecture-independent directories are X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- 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@. Modified Files: -------------- mdocml: dba.c Revision Data ------------- Index: dba.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/dba.c,v retrieving revision 1.5 retrieving revision 1.6 diff -Ldba.c -Ldba.c -u -p -r1.5 -r1.6 --- dba.c +++ dba.c @@ -177,7 +177,7 @@ dba_page_add(struct dba_array *page, int 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; -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv