diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-03-19 21:04:26 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-03-19 21:04:26 +0000 |
commit | 8ea21aa17b588000d94014a9948d37ca0d8df7a7 (patch) | |
tree | eb00fb175178190cd555fe3b751a945bd4dbc103 /include/sndio.h | |
parent | 3bbf2467fa10bd5141b5b828d51caf9520342ed2 (diff) |
Fix three bugs in man(1):
* when combining -m $path with -s $section, -s was ignored
* when combining -m with -s, ONLY $path was searched, like with -M
* when combining -M (or $MANPATH) with -s, -M was ignored
Instead, when combining -m, -M or $MANPATH with -s, let's simply look into
$path/{cat,man}$section{/$arch,} first (for -m) or only (for -M or $MANPATH).
Do not change the behaviour in other cases.
This required a rewrite of the whole path handling,
as a bonus also making the code easier to understand.
Hopefully, it helps to fix www.openbsd.org/cgi-bin/man.cgi properly.
Jason convinced me that changing the manual is not really needed.
Regression tests will follow when the tree unlocks completely.
"you are on the right track" beck@
tested and agreed by jmc@
Diffstat (limited to 'include/sndio.h')
0 files changed, 0 insertions, 0 deletions