Project

General

Profile

Actions

Bug #1043

closed

lttng list -h fails due to unsupported parameter

Added by Ricardo Nabinger Sanchez almost 8 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
07/11/2016
Due date:
% Done:

100%

Estimated time:

Description

On Slackware64-14.2, lttng list -h fails with:

# lttng list -h
man: unrecognized option '--manpath'
man, version 1.6g

usage: man [-adfhktwW] [section] [-M path] [-P pager] [-S list]
    [-m system] [-p string] name ...
(...)

Running it with strace shows it is attempting:

execve("/usr/bin/man", ["man", "--manpath", "/usr/local/share/man", "1", "lttng-list"], [/* 36 vars */]) = 0

Checking the manual page for man, the command should be:

man -M /usr/local/share/man 1 lttng-list

Both Linux and FreeBSD supports -M and do not list --manpath.

Attached patch was successfully tested on Slackware64.


Files

manpath.diff (659 Bytes) manpath.diff git diff on 7cd988f06d15559d0e455f519cc8da814696462e Ricardo Nabinger Sanchez, 07/11/2016 01:20 PM
Actions #1

Updated by Ricardo Nabinger Sanchez over 7 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset tools|commit:b07e7ef09b90a6bbb055f49bb2a6586dd45e73c9.

Actions

Also available in: Atom PDF