- don't append libexec path to absolute paths
authorSree Harsha Totakura <totakura@in.tum.de>
Mon, 16 Sep 2013 15:13:52 +0000 (15:13 +0000)
committerSree Harsha Totakura <totakura@in.tum.de>
Mon, 16 Sep 2013 15:13:52 +0000 (15:13 +0000)
src/util/os_installation.c

index 5085c0aa49375d87d6951b4f01c460a6430d524a..2c678386a207853e5f407adfef1ef10837393ca2 100644 (file)
@@ -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);