From 85e294a9b1dfce75cf1872a0f568eb4e5decd841 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 7 Nov 2002 22:23:05 +0000 Subject: Don't complain about missing man dirs unless in picky mode or if there is something other than a dir in the way. Closes PR 2935. --- libexec/makewhatis/makewhatis.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/makewhatis/makewhatis.pl b/libexec/makewhatis/makewhatis.pl index f700cd6f26d..f30f92359c7 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.22 2002/10/15 15:56:16 millert Exp $ +# $OpenBSD: makewhatis.pl,v 1.23 2002/11/07 22:23:04 millert Exp $ # # Copyright (c) 2000 Marc Espie. # @@ -576,7 +576,7 @@ if ($#ARGV == -1) { for my $mandir (@ARGV) { if (-d $mandir) { build_index($mandir); - } else { + } elsif (-e $mandir || $picky) { print STDERR "$0: $mandir is not a directory\n"; } } -- cgit v1.2.3