Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6]: src/usr.sbin/makemandb Pull up following revision(s) (request...



details:   https://anonhg.NetBSD.org/src/rev/1569f7af546d
branches:  netbsd-6
changeset: 774067:1569f7af546d
user:      riz <riz%NetBSD.org@localhost>
date:      Mon May 07 17:02:07 2012 +0000

description:
Pull up following revision(s) (requested by wiz in ticket #228):
        usr.sbin/makemandb/makemandb.c: revision 1.8
The new apropos(1) incorrectly displays hyphens in the first line
of the search results for a few man pages (for man(7) based man
pages).
Use patch from Abhinav Upadhyay in PR 46408 to fix this.

diffstat:

 usr.sbin/makemandb/makemandb.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r bc726c8a2e47 -r 1569f7af546d usr.sbin/makemandb/makemandb.c
--- a/usr.sbin/makemandb/makemandb.c    Mon May 07 16:55:33 2012 +0000
+++ b/usr.sbin/makemandb/makemandb.c    Mon May 07 17:02:07 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: makemandb.c,v 1.2.2.3 2012/03/05 19:16:27 sborrill Exp $       */
+/*     $NetBSD: makemandb.c,v 1.2.2.4 2012/05/07 17:02:07 riz Exp $    */
 /*
  * Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadhyay%gmail.com@localhost>
  * Copyright (c) 2011 Kristaps Dzonsons <kristaps%bsd.lv@localhost>
@@ -17,7 +17,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: makemandb.c,v 1.2.2.3 2012/03/05 19:16:27 sborrill Exp $");
+__RCSID("$NetBSD: makemandb.c,v 1.2.2.4 2012/05/07 17:02:07 riz Exp $");
 
 #include <sys/stat.h>
 #include <sys/types.h>
@@ -1269,8 +1269,8 @@
                 */
                int has_alias = 0;      // Any more aliases left?
                while (*name_desc) {
-                       /* Remove any leading spaces. */
-                       if (name_desc[0] == ' ') {
+                       /* Remove any leading spaces or hyphens. */
+                       if (name_desc[0] == ' ' || name_desc[0] =='-') {
                                name_desc++;
                                continue;
                        }



Home | Main Index | Thread Index | Old Index