diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-09-16 15:13:52 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-09-16 15:13:52 +0000 |
commit | b8b5cde28eadfb0e2092df808f446115d87d0f0d (patch) | |
tree | 8d6c6a221cdb0f7a921dd81414e1f386eabdd1f1 /src/util/os_installation.c | |
parent | 64bc1ae7763fd4f4e2ad4fb7acb4a1a2292bf988 (diff) | |
download | gnunet-b8b5cde28eadfb0e2092df808f446115d87d0f0d.tar.gz gnunet-b8b5cde28eadfb0e2092df808f446115d87d0f0d.zip |
- don't append libexec path to 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 5085c0aa4..2c678386a 100644 --- a/src/util/os_installation.c +++ b/src/util/os_installation.c | |||
@@ -634,6 +634,8 @@ GNUNET_OS_get_libexec_binary_path (const char *progname) | |||
634 | 634 | ||
635 | if (DIR_SEPARATOR == progname[0]) | 635 | if (DIR_SEPARATOR == progname[0]) |
636 | return GNUNET_strdup (progname); | 636 | return GNUNET_strdup (progname); |
637 | if (GNUNET_YES == GNUNET_STRINGS_path_is_absolute (progname, GNUNET_NO, NULL, NULL)) | ||
638 | return GNUNET_strdup (progname); | ||
637 | libexecdir = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_LIBEXECDIR); | 639 | libexecdir = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_LIBEXECDIR); |
638 | if (NULL == libexecdir) | 640 | if (NULL == libexecdir) |
639 | return GNUNET_strdup (progname); | 641 | return GNUNET_strdup (progname); |