Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Sep 2022 17:49:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 266708] makewhatis(1) returns wrong exit status
Message-ID:  <bug-266708-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266708

            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 upda=
ted:

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 mes=
sage
and a non zero exit status.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266708-227>