From 9ed2117897dadcfed28f3d0cd9c23e92ba9e1c6c Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 17 Jan 2019 11:19:27 +0100 Subject: whereis: search in /(s)bin before /usr/lib Addresses: https://github.com/karelzak/util-linux/issues/741 Signed-off-by: Karel Zak --- misc-utils/whereis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'misc-utils') diff --git a/misc-utils/whereis.c b/misc-utils/whereis.c index 828106ffe..c598d494e 100644 --- a/misc-utils/whereis.c +++ b/misc-utils/whereis.c @@ -99,6 +99,8 @@ struct wh_dirlist { static const char *bindirs[] = { "/usr/bin", "/usr/sbin", + "/bin", + "/sbin", #if defined(MULTIARCHTRIPLET) "/lib/" MULTIARCHTRIPLET, "/usr/lib/" MULTIARCHTRIPLET, @@ -106,8 +108,6 @@ static const char *bindirs[] = { #endif "/usr/lib", "/usr/lib64", - "/bin", - "/sbin", "/etc", "/usr/etc", "/lib", -- cgit v1.2.3-55-g7522