[Bug 266708] makewhatis(1) returns wrong exit status
Date: Thu, 29 Sep 2022 17:49:12 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266708
Bug ID: 266708
Summary: makewhatis(1) returns wrong exit status
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: wosch@FreeBSD.org
I called makewhatis without arguments. The manual page says that a "dir" is
expected, but apparently makewhatis is using "/usr/share/man:/usr/local/man" as
a default anyway.
/usr/bin/time makewhatis; echo $?
5.18 real 4.91 user 0.24 sys
0
I have no write access to /usr/share/man, so the mandoc.db will not be updated:
ls -la /usr/share/man/mandoc.db
-rw-r--r-- 1 root wheel 3303000 Sep 24 09:31 /usr/share/man/mandoc.db
In case of an error (no write permissions) I expected at least an error message
and a non zero exit status.
--
You are receiving this mail because:
You are the assignee for the bug.