Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/makemandb The new apropos(1) incorrectly displays h...
details: https://anonhg.NetBSD.org/src/rev/625bc48ec90c
branches: trunk
changeset: 779118:625bc48ec90c
user: wiz <wiz%NetBSD.org@localhost>
date: Fri May 04 23:50:26 2012 +0000
description:
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 dd660ce8610d -r 625bc48ec90c usr.sbin/makemandb/makemandb.c
--- a/usr.sbin/makemandb/makemandb.c Fri May 04 17:57:22 2012 +0000
+++ b/usr.sbin/makemandb/makemandb.c Fri May 04 23:50:26 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: makemandb.c,v 1.7 2012/03/02 15:09:58 joerg Exp $ */
+/* $NetBSD: makemandb.c,v 1.8 2012/05/04 23:50:26 wiz 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.7 2012/03/02 15:09:58 joerg Exp $");
+__RCSID("$NetBSD: makemandb.c,v 1.8 2012/05/04 23:50:26 wiz 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