From: Karel Zak Date: Thu, 17 Jan 2019 10:19:27 +0000 (+0100) Subject: whereis: search in /(s)bin before /usr/lib X-Git-Tag: v2.33.2~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=498f5735ebe66e6023f401bd43a628af97e2e0cd;p=thirdparty%2Futil-linux.git whereis: search in /(s)bin before /usr/lib Addresses: https://github.com/karelzak/util-linux/issues/741 Signed-off-by: Karel Zak --- 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",