summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2000-04-04 15:31:06 +0000
committerespie <espie@openbsd.org>2000-04-04 15:31:06 +0000
commitcdad4bed6493f523897387c2dec4b5462d18f638 (patch)
tree5352887e2079c011e9d7f585bdfbd5256af57f30
parentmissing free. (diff)
downloadwireguard-openbsd-cdad4bed6493f523897387c2dec4b5462d18f638.tar.xz
wireguard-openbsd-cdad4bed6493f523897387c2dec4b5462d18f638.zip
Scan l and n sections as well.
Noticed by Hal Snyder.
-rw-r--r--libexec/makewhatis/makewhatis.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/makewhatis/makewhatis.pl b/libexec/makewhatis/makewhatis.pl
index 75efc839f42..e81c6450622 100644
--- a/libexec/makewhatis/makewhatis.pl
+++ b/libexec/makewhatis/makewhatis.pl
@@ -1,7 +1,7 @@
#!/usr/bin/perl -w
# ex:ts=8 sw=4:
-# $OpenBSD: makewhatis.pl,v 1.4 2000/03/31 15:56:59 espie Exp $
+# $OpenBSD: makewhatis.pl,v 1.5 2000/04/04 15:31:06 espie Exp $
#
# Copyright (c) 2000 Marc Espie.
#
@@ -273,7 +273,7 @@ sub find_manpages
$list=[];
find(
sub {
- return unless /\.\d\w*(?:\.Z|\.gz)?$/;
+ return unless /\.[\dln]\w*(?:\.Z|\.gz)?$/;
return unless -f $_;
my $inode = (stat _)[1];
return if defined $nodes{$inode};
@@ -302,7 +302,7 @@ sub scan_manpages
} else {
$file = new IO::File $_ or die "$0: Can't read $_\n";
}
- if (m/\.[1-9][^.]*$/) {
+ if (m/\.[1-9ln][^.]*$/) {
$subjects = handle_unformated($file, $_);
} elsif (m/\.0$/) {
$subjects = handle_formated($file, $_);