diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-11-05 14:20:41 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-11-05 14:20:41 +0000 |
commit | 443f1bab221a2d573bb0716ac195909bef0cc83f (patch) | |
tree | 91a74a2be147691d05da4a6cf404007fddd9db88 /src/util/os_installation.c | |
parent | cedace4f43101e97c35226d8f3a44a20cd4e7665 (diff) | |
download | gnunet-443f1bab221a2d573bb0716ac195909bef0cc83f.tar.gz gnunet-443f1bab221a2d573bb0716ac195909bef0cc83f.zip |
-do not use libexec for absolute paths
Diffstat (limited to 'src/util/os_installation.c')
-rw-r--r-- | src/util/os_installation.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/os_installation.c b/src/util/os_installation.c index ef3eda2ff..035259ff6 100644 --- a/src/util/os_installation.c +++ b/src/util/os_installation.c | |||
@@ -573,6 +573,8 @@ GNUNET_OS_get_libexec_binary_path (const char *progname) | |||
573 | char *libexecdir; | 573 | char *libexecdir; |
574 | char *binary; | 574 | char *binary; |
575 | 575 | ||
576 | if (DIR_SEPARATOR == progname[0]) | ||
577 | return GNUNET_strdup (progname); | ||
576 | libexecdir = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_LIBEXECDIR); | 578 | libexecdir = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_LIBEXECDIR); |
577 | if (NULL == libexecdir) | 579 | if (NULL == libexecdir) |
578 | return GNUNET_strdup (progname); | 580 | return GNUNET_strdup (progname); |