From 37dcd07159bcc79d4366fd27aa593f80a9e0cf57 Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 10 Apr 2001 21:00:00 +0000 Subject: 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. --- libexec/makewhatis/makewhatis.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libexec') 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 @@ -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; } -- cgit