Bug 193594

Summary: Man command doesn't read /etc/man.config for manpath
Product: [Fedora] Fedora Reporter: Penelope Fudd <bugzilla.redhat.com>
Component: manAssignee: Ivana Varekova <varekova>
Status: CLOSED NOTABUG QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-11-30 09:15:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Man -w -d output
none
/etc/man.config none

Description Penelope Fudd 2006-05-30 20:34:12 UTC
Description of problem:
I added a file to /usr/local/share/man/man1 (call it foo.1), but typing 'man
foo' doesn't display it.

Version-Release number of selected component (if applicable):
man-1.6c-2.fc5

How reproducible:
All the time

Steps to Reproduce:
1. mkdir -p /usr/local/share/man/man1
2. cp testfile.1 /usr/local/share/man/man1
3. chmod -R a+rX /usr/local/share/man
4. vi /etc/man.config   (make sure /usr/local/share/man is in MANPATH)
5. man testfile
6. man -w
7. manpath

Actual results:
No manual entry for testfile
/usr/man:/usr/share/man
/usr/man:/usr/share/man

Expected results:
Manpage for testfile should show up, man -w/manpath should show
/usr/man:/usr/share/man:/usr/local/share/man

Additional info:
Initially I thought it was due to my LANG being set to POSIX, but changing it
back to en_US.UTF-8 had no effect.

Comment 1 Penelope Fudd 2006-05-30 20:35:37 UTC
The command "strace -fo/tmp/a manpath" shows that manpath is reading
/etc/man.config, but not actually checking to see if /usr/local/share/man is
present.

Comment 2 Ivana Varekova 2006-06-07 08:50:44 UTC
Could you please attach the output of command `man -w -d` and your man.config file.

Comment 3 Penelope Fudd 2006-06-07 14:24:54 UTC
Created attachment 130678 [details]
Man -w -d output

Comment 4 Penelope Fudd 2006-06-07 14:25:36 UTC
Created attachment 130679 [details]
/etc/man.config

Comment 5 Penelope Fudd 2006-06-14 22:55:45 UTC
Done

Comment 6 Ivana Varekova 2006-11-30 09:15:29 UTC
man behavior is right. It seems you have nonstandart setting -
The set of paths which is man looking for man pages depends on enviroment
variables. It seems you have set variable MANPATH to "/usr/share/man" which
causes this behavior.