summaryrefslogtreecommitdiff
path: root/libexec/makewhatis
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-11-07 22:23:05 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-11-07 22:23:05 +0000
commit85e294a9b1dfce75cf1872a0f568eb4e5decd841 (patch)
tree8c1c25278297df5fce6cbbc58b4685d8d277a680 /libexec/makewhatis
parentc8bbe0feb4ebc9bf4fef4d4fe8fb9fe23a856145 (diff)
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.
Diffstat (limited to 'libexec/makewhatis')
-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";
}
}