FS#22866 - [man-db] man command is returning incorrect man page for non existent ones
Attached to Project:
Arch Linux
Opened by Raghavendra D Prabhu (rprabhu) - Saturday, 12 February 2011, 11:17 GMT
Last edited by Andreas Radke (AndyRTR) - Wednesday, 13 April 2011, 16:42 GMT
Opened by Raghavendra D Prabhu (rprabhu) - Saturday, 12 February 2011, 11:17 GMT
Last edited by Andreas Radke (AndyRTR) - Wednesday, 13 April 2011, 16:42 GMT
|
Details
Description:
man command is returning an incorrect entry. Additional info: Version Name : man-pages Version : 3.32-1 URL : http://www.kernel.org/doc/man-pages/ Steps to reproduce: /usr/bin/man 1 asdasd This returns man page for std::_Build_index_tuple and after exiting man output says "No manual entry for asdasd" Happens only for man 1 <nonexistent> and man 2 <nonexistent> Ideally, it should say No manual entry for asdasd in section 1 with exit code 16 |
This task depends upon
Closed by Andreas Radke (AndyRTR)
Wednesday, 13 April 2011, 16:42 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in 2.6.0.2
Wednesday, 13 April 2011, 16:42 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in 2.6.0.2
No manual entry for foo
This seems to be an issue with man-db showing a wrong default page when the intended page is not found.
What's happening here is that, after failing to find foo(1), man falls back to considering '1' and 'foo' as separate manual page names (we have to try this because there are some legitimate manual page names that look like sections; the example I left in a source code comment is 'man 9wm fvwm'). It looks like std::_Build_index_tuple(3) is misparsed such that it has '1' and '2' as alternative names, so man shows that for '1' and then issues an error to the effect that it can't find 'foo'.
The proper fix for this is probably to fix the parsing of std::_Build_index_tuple(3) (which will require a full database rebuild to take effect).
Wed Apr 13 10:26:07 BST 2011 Colin Watson <cjwatson@debian.org>
* src/descriptions.c (parse_descriptions): Once we've seen at least
one record, ignore any further records that don't include a whatis
description, as they tend to be noise (Arch Linux bug #22866).
* NEWS: Document this.