mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
man: use man.config, not only man.conf (man version 1.6f compat)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
7cee00e8ae
commit
0e1b626b9a
@ -182,8 +182,12 @@ int man_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
pager = "more";
|
pager = "more";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Parse man.conf */
|
/* Parse man.conf[ig] */
|
||||||
|
/* man version 1.6f uses man.config */
|
||||||
|
parser = config_open2("/etc/man.config", fopen_for_read);
|
||||||
|
if (!parser)
|
||||||
parser = config_open2("/etc/man.conf", fopen_for_read);
|
parser = config_open2("/etc/man.conf", fopen_for_read);
|
||||||
|
|
||||||
while (config_read(parser, token, 2, 0, "# \t", PARSE_NORMAL)) {
|
while (config_read(parser, token, 2, 0, "# \t", PARSE_NORMAL)) {
|
||||||
if (!token[1])
|
if (!token[1])
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user