]> err.no Git - util-linux/commitdiff
whereis: add lib64 paths
authorKarel Zak <kzak@redhat.com>
Wed, 11 Jul 2007 09:15:45 +0000 (11:15 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Jul 2007 09:15:45 +0000 (11:15 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/whereis.c

index 385cbf41bdc228837615467689b6e4a6c62e155e..43153799d38e4523a1ba0339366f620f6a118fe6 100644 (file)
@@ -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;