From 498f5735ebe66e6023f401bd43a628af97e2e0cd Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 17 Jan 2019 11:19:27 +0100 Subject: [PATCH] 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(-) diff --git a/misc-utils/whereis.c b/misc-utils/whereis.c index 828106ffe7..c598d494e8 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", -- 2.47.2