Fix man -k with mandocdb
authorbapt <bapt@FreeBSD.org>
Fri, 24 Jul 2015 09:10:03 +0000 (09:10 +0000)
committerbapt <bapt@FreeBSD.org>
Fri, 24 Jul 2015 09:10:03 +0000 (09:10 +0000)
commiteaa94ad7a39a6df7c6c5da4ed9faf9c1ad1b9a07
tree2f3beca60c3a34d6efab31b2157cf3c18438bbed
parentdf41ed0ac80b22c41e5194a9baa82d4f5f96acd1
Fix man -k with mandocdb

If apropos(1) and whatis(1) are not hardlinks to man(1) that means the system is
using mandocdb, then man -k should spawn apropos(1) and/or whatis(1) directly

Reported by: kevlo
Tested by: kevlo
Sponsored by: gandi.net
usr.bin/man/man.sh