summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authortron <tron@NetBSD.org>2001-04-10 21:00:00 +0000
committertron <tron@NetBSD.org>2001-04-10 21:00:00 +0000
commit37dcd07159bcc79d4366fd27aa593f80a9e0cf57 (patch)
tree98cdb709e0fed9bc13d8993b340e6c92f539ba40 /libexec
parent247d880fc9308d70fb954bf0e238f392028cbe56 (diff)
Strip overstrike characters from input lines while searching for a "NAME"
section in a formatted manual page. "makewhatis" now recognizes and indexes the OpenSSL manual pages properly. Fixes PR bin/12390 by Hubert Feyrer.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/makewhatis/makewhatis.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/makewhatis/makewhatis.c b/libexec/makewhatis/makewhatis.c
index 056c33771f8..7f44337b471 100644
--- a/libexec/makewhatis/makewhatis.c
+++ b/libexec/makewhatis/makewhatis.c
@@ -1,4 +1,4 @@
-/* $NetBSD: makewhatis.c,v 1.15 2001/04/08 14:49:32 tron Exp $ */
+/* $NetBSD: makewhatis.c,v 1.16 2001/04/10 21:00:00 tron Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1999 The NetBSD Foundation, Inc.\n\
#endif /* not lint */
#ifndef lint
-__RCSID("$NetBSD: makewhatis.c,v 1.15 2001/04/08 14:49:32 tron Exp $");
+__RCSID("$NetBSD: makewhatis.c,v 1.16 2001/04/10 21:00:00 tron Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -375,7 +375,8 @@ parsecatpage(gzFile *in)
free(section);
return NULL;
}
- if (strncmp(buffer, "N\10NA\10AM\10ME\10E", 12) == 0)
+ catpreprocess(buffer);
+ if (strncmp(buffer, "NAME", 4) == 0)
break;
}