projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cee00e
)
man: use man.config, not only man.conf (man version 1.6f compat)
author
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 24 Jul 2009 00:28:12 +0000
(
02:28
+0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 24 Jul 2009 00:28:12 +0000
(
02:28
+0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/man.c
patch
|
blob
|
history
diff --git
a/miscutils/man.c
b/miscutils/man.c
index 672ddb1c8e421c88694fec56f1249dd981f8c436..a4ff274d40bea2f4d9b512617c3bec9273a31da9 100644
(file)
--- a/
miscutils/man.c
+++ b/
miscutils/man.c
@@
-182,8
+182,12
@@
int man_main(int argc UNUSED_PARAM, char **argv)
pager = "more";
}
- /* Parse man.conf */
- parser = config_open2("/etc/man.conf", fopen_for_read);
+ /* 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);
+
while (config_read(parser, token, 2, 0, "# \t", PARSE_NORMAL)) {
if (!token[1])
continue;