Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1797 MANPATH

1.160
closed
Jamie Cameron
5
2004-10-07
2004-10-06
Anonymous
No

From elecmatth@hotmail.com
In webmin version 1.160

I think there can be a mistake in the search.cgi in
while searching in section man : the $config{'man_dir'}
is only used if you got an in{'opt'}.
The problem is that if I want to look for a man page
that is not in the standard MANPATH the path I
specified in the config is not added.
On the other hand if I use the webmin command
"help_search_link" with as section parameter
"man:mypath" it works fine.

As a correction I would propose to change the :
L188
-------------------------------------------------------
if ($opts{'man'}) {
$ENV{'MANPATH'} .= $config{'man_dir'}.':'.$opts{'man'};
}
--------------------------------------------------------
in :
----------------------------------------------------------
$ENV{'MANPATH'} .= $config{'man_dir'};
if ($opts{'man'}) {
$ENV{'MANPATH'} .= ':'.$opts{'man'};
}
-----------------------------------------------------------

or something like that. I mean a two time insertion

Discussion

  • Jamie Cameron
    Jamie Cameron
    2004-10-07

    Logged In: YES
    user_id=129364

    Agreed, I will make this change in the next Webmin release ..

     
  • Jamie Cameron
    Jamie Cameron
    2004-10-07

    • status: open --> closed