Bug 223529 - makewhatis ignores read permission errors on directories
Summary: makewhatis ignores read permission errors on directories
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-08 12:18 UTC by Wolfram Schneider
Modified: 2017-11-08 12:18 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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