summaryrefslogtreecommitdiff
path: root/hardinfo/util.c
diff options
context:
space:
mode:
authorjamesbond <jamesbond>2014-07-28 17:01:25 +0000
committerLeandro Pereira <leandro@hardinfo.org>2015-10-25 15:49:33 -0200
commit6dd14fed6db519a2feb77a5b2b6e73ff03c4d043 (patch)
treea6784731925626be94d6ae0da328c30a8f0c4b53 /hardinfo/util.c
parentda77fa093e35ca15d3b405c41b30f3cbbbe66c26 (diff)
revert commit [d5afcb6851]; fix the real cause of missing RAM display (use moreinfo_lookup rather than hi_more_info); fix usb display crashing (util.c now looks for lsusb in /usr/sbin first); fix glibc version not showing (glibc located in /lib64/libc.so.6); initial support for DDR3 spd-decoding (incomplete, the manufacturer is not shown yet).
Diffstat (limited to 'hardinfo/util.c')
-rw-r--r--hardinfo/util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hardinfo/util.c b/hardinfo/util.c
index e94d215a..e9b2f930 100644
--- a/hardinfo/util.c
+++ b/hardinfo/util.c
@@ -54,10 +54,10 @@ gchar *find_program(gchar *program_name)
int i;
char *temp;
static GHashTable *cache = NULL;
- const char *path[] = { "/bin", "/sbin",
- "/usr/bin", "/usr/sbin",
- "/usr/local/bin", "/usr/local/sbin",
- NULL };
+ const char *path[] = { "/usr/local/bin", "/usr/local/sbin",
+ "/usr/bin", "/usr/sbin",
+ "/bin", "/sbin",
+ NULL };
/* we don't need to call stat() every time: cache the results */
if (!cache) {