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 (Nobody)
URL:
Keywords:
Depends on:
Blocks: 275968
  Show dependency treegraph
 
Reported: 2017-11-08 12:18 UTC by Wolfram Schneider
Modified: 2023-12-28 15:41 UTC (History)
1 user (show)

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 freebsd_triage 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