5652c781e4
Currently, `man -p` generates its output based on the value of the _default tag in man.conf. However, man(1) modifies its search path based on the value of the MANPATH variable and the list of directories specified via the -M option. In such a case, `man -p` does not represent the correct search path. This commit intends to fix this. This change has the side effect that now the output of `man -p` will also include the machine class specific subdirectories (such as man8/x86), while previously it did not. The output would include subdirectories only for those machine classes which are specified in the man.conf file. Also, with this change, it is possible to run makemandb(8), by setting MANPATH environment variable (e.g. env MANPATH=/usr/share/man makemandb). Patch reviewed by wiz@ |
||
---|---|---|
.. | ||
Makefile | ||
man.1 | ||
man.c | ||
man.conf.5 | ||
manconf.c | ||
manconf.h | ||
pathnames.h |