Older versions of man (and the implementation used in FreeBSD) do
not support the long version of the --manpath/-M option. Use
'-M' in the interest of portability.
Fixes #1043
Signed-off-by: Ricardo Nabinger Sanchez <rnsanchez@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
/*
* Execute man pager.
*
- * We provide --manpath to man here because LTTng-tools can
+ * We provide -M to man here because LTTng-tools can
* be installed outside /usr, in which case its man pages are
* not located in the default /usr/share/man directory.
*/
- ret = execlp(man_bin_path, "man", "--manpath", MANPATH,
+ ret = execlp(man_bin_path, "man", "-M", MANPATH,
section_string, page_name, NULL);
return ret;
}