Bug 223529

Summary: makewhatis ignores read permission errors on directories
Product: Base System Reporter: Wolfram Schneider <wosch>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

Description Wolfram Schneider freebsd_committer 2017-11-08 12:18:06 UTC
I run makewhatis on a man directory without read permissions. It ignored the error and reported a successful error status 0.

How to repeat:

$ mkdir man man/man1
$ cp /usr/share/man/man1/cat.1.gz man/man1
$ chmod u-r man
$ makewhatis man
$ echo $?

On FreeBSD 10 the result is as expected:

makewhatis: man: Permission denied
1