Bug 684977

Summary: section specification not honoured correctly
Product: [Fedora] Fedora Reporter: Miloslav Trmač <mitr>
Component: man-dbAssignee: Ivana Varekova <varekova>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14CC: cjwatson, varekova
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-23 13:52:25 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:

Description Miloslav Trmač 2011-03-14 21:54:55 UTC
Version-Release number of selected component (if applicable):
man-db-2.5.7-7.fc14.x86_64

Steps to Reproduce:
1. $ ls /usr/share/man/man3*/open.*
> /usr/share/man/man3/open.3pm.gz  /usr/share/man/man3p/open.3p.gz
2. $ man 3p open
  
Actual results:
open(3pm) opens

Expected results:
open(3p) opens

Comment 1 Colin Watson 2011-03-15 10:53:42 UTC
Thanks for your report.  I've fixed this upstream for man-db 2.6.0:

Tue Mar 15 10:52:58 GMT 2011  Colin Watson  <cjwatson>

        * src/man.c (compare_candidates): If the user asked for an explicit
          section, sort exact matches first (Fedora bug #684977).
        * src/tests/man-3: New file.
        * src/tests/Makefile.am (ALL_TESTS): Add man-3.
        * NEWS: Document this.

Comment 2 Ivana Varekova 2011-03-23 13:52:25 UTC
Thanks, backported to man-db-2.5.9-5.fc16.