diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-12-21 14:42:18 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-12-21 14:42:18 +0000 |
commit | 159da73869b11137dd8c12c14266f1a2e18f223b (patch) | |
tree | 7349bf65dfd2ca93ec9268f41f5186ac269f7028 /src/gns/test_gns_proxy.c | |
parent | 8a3f6ada0a51722084e8ff7b8d9463f51e5d2cbe (diff) | |
download | gnunet-159da73869b11137dd8c12c14266f1a2e18f223b.tar.gz gnunet-159da73869b11137dd8c12c14266f1a2e18f223b.zip |
-check for helpers in libexec
Diffstat (limited to 'src/gns/test_gns_proxy.c')
-rw-r--r-- | src/gns/test_gns_proxy.c | 7 |
1 files changed, 5 insertions, 2 deletions
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, | |||
444 | int | 444 | int |
445 | main (int argc, char *const *argv) | 445 | main (int argc, char *const *argv) |
446 | { | 446 | { |
447 | char *binary; | ||
447 | 448 | ||
448 | if (GNUNET_SYSERR == GNUNET_OS_check_helper_binary ("gnunet-gns-proxy")) | 449 | if (GNUNET_SYSERR == GNUNET_OS_check_helper_binary ("gnunet-gns-proxy")) |
449 | { | 450 | { |
450 | fprintf (stderr, "Proxy binary not in PATH... skipping!\n"); | 451 | fprintf (stderr, "Proxy binary not in PATH... skipping!\n"); |
451 | return 0; | 452 | return 0; |
452 | } | 453 | } |
453 | 454 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-dns"); | |
454 | if (GNUNET_YES != GNUNET_OS_check_helper_binary ("gnunet-helper-dns")) | 455 | if (GNUNET_YES != GNUNET_OS_check_helper_binary (binary)) |
455 | { | 456 | { |
456 | fprintf (stderr, "DNS helper binary has wrong permissions... skipping!\n"); | 457 | fprintf (stderr, "DNS helper binary has wrong permissions... skipping!\n"); |
458 | GNUNET_free (binary); | ||
457 | return 0; | 459 | return 0; |
458 | } | 460 | } |
461 | GNUNET_free (binary); | ||
459 | 462 | ||
460 | GNUNET_CRYPTO_rsa_setup_hostkey ("test_gns_proxy.conf"); | 463 | GNUNET_CRYPTO_rsa_setup_hostkey ("test_gns_proxy.conf"); |
461 | 464 | ||