summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2002-11-07 22:23:04 +0000
committermillert <millert@openbsd.org>2002-11-07 22:23:04 +0000
commite7151bdcc744be752d61174d5e97df0624ae30b7 (patch)
treecd43bb90bdaa22e56e13d970603fc9ca0e0b6d86
parentwe cannot use HostbasedAuthentication for enabling ssh-keysign(8), (diff)
downloadwireguard-openbsd-e7151bdcc744be752d61174d5e97df0624ae30b7.tar.xz
wireguard-openbsd-e7151bdcc744be752d61174d5e97df0624ae30b7.zip
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.
-rw-r--r--libexec/makewhatis/makewhatis.pl4
1 files 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";
}
}