From b8b5cde28eadfb0e2092df808f446115d87d0f0d Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Mon, 16 Sep 2013 15:13:52 +0000 Subject: [PATCH] - don't append libexec path to absolute paths --- src/util/os_installation.c | 2 ++ 1 file changed, 2 insertions(+) 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) if (DIR_SEPARATOR == progname[0]) return GNUNET_strdup (progname); + if (GNUNET_YES == GNUNET_STRINGS_path_is_absolute (progname, GNUNET_NO, NULL, NULL)) + return GNUNET_strdup (progname); libexecdir = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_LIBEXECDIR); if (NULL == libexecdir) return GNUNET_strdup (progname); -- 2.25.1