]> git.ipfire.org Git - thirdparty/util-linux.git/commit
whereis: do not strip suffixes
authorSamanta Navarro <ferivoz@riseup.net>
Wed, 4 Nov 2020 11:37:00 +0000 (11:37 +0000)
committerSamanta Navarro <ferivoz@riseup.net>
Wed, 4 Nov 2020 11:43:09 +0000 (11:43 +0000)
commit117ddbeedc02bfc93f6776ca27c3a5501bd718e5
tree80c53eb8ec4031d0751996674249a233885185f5
parentd95ee9fd759762ce11b292d5d4484dd62888645e
whereis: do not strip suffixes

The whereis implementations of FreeBSD, macOS, NetBSD, and OpenBSD do
not strip suffixes. Although whereis is not a POSIX tool and has no
shared standard, even its manual page indicates that the supplied names
are command names.

Commands do not have a suffix on Linux systems.

Stripping suffixes actually leads to issues with tools like fsck.ext4,
since fsck.ext4 is not the same tool as fsck and definitely not the same
tool as fsck.minix.

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