From: Karel Zak Date: Wed, 11 Jul 2007 09:15:45 +0000 (+0200) Subject: whereis: add lib64 paths X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7dff8582f826830926b50b272e5ebfcfb46bf243;p=util-linux whereis: add lib64 paths Signed-off-by: Karel Zak --- diff --git a/misc-utils/whereis.c b/misc-utils/whereis.c index 385cbf41..43153799 100644 --- a/misc-utils/whereis.c +++ b/misc-utils/whereis.c @@ -66,6 +66,8 @@ static char *bindirs[] = { "/usr/etc", "/lib", "/usr/lib", + "/lib64", + "/usr/lib64", "/usr/games", "/usr/games/bin", "/usr/games/lib", @@ -74,7 +76,7 @@ static char *bindirs[] = { "/usr/TeX/bin", "/usr/tex/bin", "/usr/interviews/bin/LINUX", - + "/usr/X11R6/bin", "/usr/X386/bin", "/usr/bin/X11", @@ -149,7 +151,6 @@ main(int argc, char **argv) { setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); - argc--, argv++; if (argc == 0) { @@ -328,7 +329,7 @@ findin(char *dir, char *cp) { goto noglob; l = strlen(dir); - if (l < sizeof(dirbuf)) { /* refuse excessively long names */ + if (l < sizeof(dirbuf)) { /* refuse excessively long names */ strcpy (dirbuf, dir); d = index(dirbuf, '*'); *d = 0;