aboutsummaryrefslogtreecommitdiff
path: root/src/util/os_installation.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-12-08 21:38:04 +0000
committerChristian Grothoff <christian@grothoff.org>2012-12-08 21:38:04 +0000
commit36a48508667b24317d2c64cc261d6c03141111c4 (patch)
tree160b8d84c9f35c6a9f986e99447df60dbf7cd244 /src/util/os_installation.c
parent99c8e541e650a32caee7862989e6741509640755 (diff)
downloadgnunet-36a48508667b24317d2c64cc261d6c03141111c4.tar.gz
gnunet-36a48508667b24317d2c64cc261d6c03141111c4.zip
look in /opt/jdk1.6.0_22/bin:/usr/lib/jvm/java-6-sun//bin:.:/home/grothoff/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games for gnunet-arm before trying /proc/exe
Diffstat (limited to 'src/util/os_installation.c')
-rw-r--r--src/util/os_installation.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/os_installation.c b/src/util/os_installation.c
index 674e47a5f..e35f86c3e 100644
--- a/src/util/os_installation.c
+++ b/src/util/os_installation.c
@@ -396,6 +396,9 @@ os_get_gnunet_path ()
396#if LINUX 396#if LINUX
397 if (NULL != (ret = get_path_from_proc_maps ())) 397 if (NULL != (ret = get_path_from_proc_maps ()))
398 return ret; 398 return ret;
399 /* try path *first*, before /proc/exe, as /proc/exe can be wrong */
400 if (NULL != (ret = get_path_from_PATH ("gnunet-arm")))
401 return ret;
399 if (NULL != (ret = get_path_from_proc_exe ())) 402 if (NULL != (ret = get_path_from_proc_exe ()))
400 return ret; 403 return ret;
401#endif 404#endif