Signed-off-by: Karel Zak <kzak@redhat.com>
usrbin_exec_PROGRAMS += whereis
dist_man_MANS += misc-utils/whereis.1
whereis_SOURCES = misc-utils/whereis.c
+whereis_LDADD = $(LDADD) libcommon.la
if BUILD_LSLOCKS
usrbin_exec_PROGRAMS += lslocks
#include "nls.h"
#include "c.h"
#include "closestream.h"
+#include "canonicalize.h"
/*#define DEBUG*/
};
static const char *bindirs[] = {
- "/bin",
"/usr/bin",
- "/sbin",
"/usr/sbin",
+ "/usr/lib",
+ "/usr/lib64",
+ "/bin",
+ "/sbin",
"/etc",
"/usr/etc",
"/lib",
- "/usr/lib",
"/lib64",
- "/usr/lib64",
"/usr/games",
"/usr/games/bin",
"/usr/games/lib",
ls->st_ino = st.st_ino;
ls->st_dev = st.st_dev;
ls->type = type;
- ls->path = xstrdup(dir);
+ ls->path = canonicalize_path(dir);
if (!*ls0)
*ls0 = ls; /* first in the list */