Bug 684977 - section specification not honoured correctly
Summary: section specification not honoured correctly
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: man-db
Version: 14
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ivana Varekova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-14 21:54 UTC by Miloslav Trmač
Modified: 2011-03-23 13:52 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-23 13:52:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.