CVS: cvs.openbsd.org: src

Ingo Schwarze <[email protected]>
Newsgroups gmane.os.openbsd.cvs
Message-ID <[email protected]>
CVSROOT:	/cvs
Module name:	src
Changes by:	[email protected]	2026/08/24 13:56:01

Modified files:
	usr.bin/mandoc : mandocdb.c 

Log message:
Slightly improve error reporting in two respects:
1. In the error reporting function, if the file argument is absolute,
ignore the basedir.  This makes it easier and more robust to talk
about absolute paths, which are typically below /tmp/.
2. Report dba_write failure.  Even if the data did not actually change,
the user almost certainly wants to know about the problem because
it's hard to see how it could be intentional to ask makewhatis(8)
to change a database it cannot write to.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.