]> git.ipfire.org Git - thirdparty/util-linux.git/commit
whereis: do not ignore trailing numbers
authorSamanta Navarro <ferivoz@riseup.net>
Wed, 4 Nov 2020 11:36:00 +0000 (11:36 +0000)
committerSamanta Navarro <ferivoz@riseup.net>
Wed, 4 Nov 2020 11:43:09 +0000 (11:43 +0000)
commitd95ee9fd759762ce11b292d5d4484dd62888645e
treed99902e781bbd789ba6cfbf7f8a7000833d9b357
parentb7fc158a2eb5433f178337773b4f9fd7805555d8
whereis: do not ignore trailing numbers

The commands diff and diff3 are so distinct that their manual pages
should not be mixed in whereis output.

Theoretically this works for commands and binaries with links to each
other, e.g. gpg and gpg2, but if gpg is version 1 and gpg2 is version 2
then manual pages do not match either.

Also the while loop does not decrement "i" while incrementing "dp". The
effect of this is that the output of whereis depends on manual pages
being compressed or not.

The easiest solution is to not ignore trailing numbers.

Signed-off-by: Samanta Navarro <ferivoz@riseup.net>
misc-utils/whereis.c