- fix 2699
[oweals/gnunet.git] / src / gns / test_gns_proxy.c
index 545551411ebeab1a544cbff175a5a0d0c42a2f98..1b904cec973793a4f9eaec5902ac81d2678e304e 100644 (file)
@@ -28,7 +28,7 @@
 #include <microhttpd.h>
 #include "gnunet_namestore_service.h"
 #include "gnunet_gns_service.h"
-#include "gnunet_testing_lib-new.h"
+#include "gnunet_testing_lib.h"
 #include "gnunet_os_lib.h"
 
 #define PORT 8080
@@ -444,18 +444,21 @@ run (void *cls,
 int
 main (int argc, char *const *argv)
 {
+  char *binary;
 
   if (GNUNET_SYSERR == GNUNET_OS_check_helper_binary ("gnunet-gns-proxy"))
   {
     fprintf (stderr, "Proxy binary not in PATH... skipping!\n");
     return 0;
   }
-
-  if (GNUNET_YES != GNUNET_OS_check_helper_binary ("gnunet-helper-dns"))
+  binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-dns");
+  if (GNUNET_YES != GNUNET_OS_check_helper_binary (binary))
   {
     fprintf (stderr, "DNS helper binary has wrong permissions... skipping!\n");
+    GNUNET_free (binary);
     return 0;
   }
+    GNUNET_free (binary);
 
   GNUNET_CRYPTO_rsa_setup_hostkey ("test_gns_proxy.conf");