aboutsummaryrefslogtreecommitdiff
path: root/miscutils/man.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/man.c')
-rw-r--r--miscutils/man.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/miscutils/man.c b/miscutils/man.c
index b2d42b043..3c1a79085 100644
--- a/miscutils/man.c
+++ b/miscutils/man.c
@@ -309,6 +309,10 @@ int man_main(int argc UNUSED_PARAM, char **argv)
309 { 309 {
310 char *exepath = xstrdup(bb_busybox_exec_path); 310 char *exepath = xstrdup(bb_busybox_exec_path);
311 char *relpath = concat_path_file(dirname(exepath), "man"); 311 char *relpath = concat_path_file(dirname(exepath), "man");
312 if (count_mp == 0) {
313 /* default must match path set above */
314 man_path_list = add_MANPATH(man_path_list, &count_mp, "/usr/man");
315 }
312 man_path_list = add_MANPATH(man_path_list, &count_mp, relpath); 316 man_path_list = add_MANPATH(man_path_list, &count_mp, relpath);
313 free(relpath); 317 free(relpath);
314 free(exepath); 318 free(exepath);