summaryrefslogtreecommitdiffstats
path: root/misc-utils
diff options
context:
space:
mode:
authorKarel Zak2007-07-11 11:15:45 +0200
committerKarel Zak2007-07-11 11:15:45 +0200
commit7dff8582f826830926b50b272e5ebfcfb46bf243 (patch)
treecc0cc90794acd487ad9f317c8d359988cbecc10f /misc-utils
parentbuild-sys: remove libtool (diff)
downloadkernel-qcow2-util-linux-7dff8582f826830926b50b272e5ebfcfb46bf243.tar.gz
kernel-qcow2-util-linux-7dff8582f826830926b50b272e5ebfcfb46bf243.tar.xz
kernel-qcow2-util-linux-7dff8582f826830926b50b272e5ebfcfb46bf243.zip
whereis: add lib64 paths
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils')
-rw-r--r--misc-utils/whereis.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/misc-utils/whereis.c b/misc-utils/whereis.c
index 385cbf41b..43153799d 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;