Project

General

Profile

Actions

Bug #6697

closed

Bug #6548: The rudder-agent profile configuration may override the system MANPATH

Problem with MANPATH on rudder-agent 3.0.5 on RHEL/CentOS

Added by Dennis Cabooter almost 9 years ago. Updated almost 9 years ago.

Status:
Released
Priority:
1
Assignee:
Matthieu CERDA
Category:
Agent
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

On all logins to RHEL/CentOS nodes I get now this error:

manpath: invalid option -- q
manpath, version 1.6d

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

  a : find all matching entries
  c : do not use cat file
  d : print gobs of debugging information
  D : as for -d, but also display the pages
  f : same as whatis(1)
  h : print this help message
  k : same as apropos(1)
  K : search for a string in all pages
  t : use troff to format pages for printing
  w : print location of man page(s) that would be displayed
      (if no name given: print directories that would be searched)
  W : as for -w, but display filenames only

  C file   : use `file' as configuration file
  M path   : set search path for manual pages to `path'
  P pager  : use program `pager' to display pages
  S list   : colon separated section list
  m system : search for alternate system's man pages
  p string : string tells which preprocessors to run
               e - [n]eqn(1)   p - pic(1)    t - tbl(1)
               g - grap(1)     r - refer(1)  v - vgrind(1)

The problem actually is here:

# cat /etc/profile.d/rudder-agent.sh
# Rudder profile entries, to add the agent to the
# PATH and its manpages to the MANPATH

# 1 - Add CFEngine binaries to the PATH

PATH=${PATH}:/var/rudder/cfengine-community/bin
export PATH

# 2 - Build a MANPATH with our manpages in it

## If $MANPATH is already defined, use it, or build
## a new one from scratch if it does not
if type manpath >/dev/null 2>&1
then
    MANPATH=$(manpath -q):/opt/rudder/share/man
elif [ ! -z "${MANPATH}" ]
then
    MANPATH=${MANPATH}:/opt/rudder/share/man
else
    MANPATH=/opt/rudder/share/man
fi

export MANPATH
Actions #1

Updated by Vincent MEMBRÉ almost 9 years ago

  • Related to Bug #6548: The rudder-agent profile configuration may override the system MANPATH added
Actions #2

Updated by Vincent MEMBRÉ almost 9 years ago

This bug is related to #6548, we need to remove -q option and replace it by "2> /dev/null" to remove the warning

Actions #3

Updated by Vincent MEMBRÉ almost 9 years ago

  • Target version changed from 3.0.6 to 2.10.15
Actions #4

Updated by Vincent MEMBRÉ almost 9 years ago

  • Status changed from New to In progress
  • Assignee changed from Matthieu CERDA to Vincent MEMBRÉ
Actions #5

Updated by Vincent MEMBRÉ almost 9 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Vincent MEMBRÉ to Matthieu CERDA
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/675
Actions #6

Updated by Vincent MEMBRÉ almost 9 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
Actions #7

Updated by Matthieu CERDA almost 9 years ago

Actions #8

Updated by Vincent MEMBRÉ almost 9 years ago

  • Related to deleted (Bug #6548: The rudder-agent profile configuration may override the system MANPATH)
Actions #9

Updated by Vincent MEMBRÉ almost 9 years ago

  • Parent task set to #6548
Actions #10

Updated by Vincent MEMBRÉ almost 9 years ago

  • Target version changed from 2.10.15 to 2.10.14
Actions #11

Updated by Vincent MEMBRÉ almost 9 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.10.14, 2.11.11 and 3.0.5 which were released today.

Actions

Also available in: Atom PDF