← Commit list

0e1b626b9

Denys Vlasenko
Denys Vlasenko
2009-07-24
FAILED Duration: 31s

Subject

man: use man.config, not only man.conf (man version 1.6f compat)

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

miscutils/man.c+6 -2
@@ -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;