From 159da73869b11137dd8c12c14266f1a2e18f223b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 21 Dec 2012 14:42:18 +0000 Subject: -check for helpers in libexec --- src/gns/test_gns_proxy.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/gns') diff --git a/src/gns/test_gns_proxy.c b/src/gns/test_gns_proxy.c index 545551411..4fcd2fd56 100644 --- a/src/gns/test_gns_proxy.c +++ b/src/gns/test_gns_proxy.c @@ -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"); -- cgit v1.2.3