man: fix literal file suffix parsing regression
authorFranco Fichtner <franco@lastsummer.de>
Sun, 6 Oct 2013 17:07:27 +0000 (19:07 +0200)
committerFranco Fichtner <franco@lastsummer.de>
Sun, 6 Oct 2013 17:31:55 +0000 (19:31 +0200)
commitde897c7e9f22aa5a5cd3cad3bc3d91739633a33f
treea33094f7996747ccaf43e309eaa4af2dd3e26f9e
parent0011d25485a2a9b99db5533327bc54fa7ba0a952
man: fix literal file suffix parsing regression

Some man pages have dots in their names, apparently.  Fixes
the following invoke:

    # man ./man.conf.5

This, however, doesn't fix parsing of e.g. "./man..conf.4.5".
Instead the suffix list should be searched for a real match
while also preserving their matching order.  In the meantime,
please don't do this (ever).

Noticed-by: Thomas Klausner via NetBSD
usr.bin/man/man.c