aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-11-01 16:31:38 +0000
committerChristian Grothoff <christian@grothoff.org>2012-11-01 16:31:38 +0000
commite06757ef0a0744d67b0cc9616e3116e68615cbbc (patch)
tree4890d929f77889c1495914ce910c90a3be43f1b2
parent99cf5e19c73875e293283d575dea15c4ac40ec64 (diff)
downloadgnunet-gtk-e06757ef0a0744d67b0cc9616e3116e68615cbbc.tar.gz
gnunet-gtk-e06757ef0a0744d67b0cc9616e3116e68615cbbc.zip
-more libexec fixes
-rw-r--r--src/setup/gnunet-setup-transport.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/setup/gnunet-setup-transport.c b/src/setup/gnunet-setup-transport.c
index 0b8f47e6..aead2a43 100644
--- a/src/setup/gnunet-setup-transport.c
+++ b/src/setup/gnunet-setup-transport.c
@@ -428,8 +428,10 @@ test_icmp_server (struct GNUNET_SetupAutoContext *ac)
428{ 428{
429 int hns; 429 int hns;
430 char *tmp; 430 char *tmp;
431 char *binary;
431 432
432 tmp = NULL; 433 tmp = NULL;
434 binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-nat-server");
433 hns = 435 hns =
434 ((GNUNET_OK == 436 ((GNUNET_OK ==
435 GNUNET_CONFIGURATION_get_value_string (cfg, "nat", "EXTERNAL_ADDRESS", 437 GNUNET_CONFIGURATION_get_value_string (cfg, "nat", "EXTERNAL_ADDRESS",
@@ -437,8 +439,9 @@ test_icmp_server (struct GNUNET_SetupAutoContext *ac)
437 (GNUNET_YES == 439 (GNUNET_YES ==
438 GNUNET_CONFIGURATION_get_value_yesno (cfg, "nat", "BEHIND_NAT")) && 440 GNUNET_CONFIGURATION_get_value_yesno (cfg, "nat", "BEHIND_NAT")) &&
439 (GNUNET_YES == 441 (GNUNET_YES ==
440 GNUNET_OS_check_helper_binary ("gnunet-helper-nat-server"))); 442 GNUNET_OS_check_helper_binary (binary)));
441 GNUNET_free_non_null (tmp); 443 GNUNET_free_non_null (tmp);
444 GNUNET_free (binary);
442 if (hns) 445 if (hns)
443 GNUNET_SCHEDULER_add_now (&reversal_test, ac); 446 GNUNET_SCHEDULER_add_now (&reversal_test, ac);
444 else 447 else
@@ -457,8 +460,10 @@ test_icmp_client (struct GNUNET_SetupAutoContext *ac)
457 GtkToggleButton *button; 460 GtkToggleButton *button;
458 int hnc; 461 int hnc;
459 char *tmp; 462 char *tmp;
463 char *binary;
460 464
461 tmp = NULL; 465 tmp = NULL;
466 binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-nat-client");
462 hnc = 467 hnc =
463 ((GNUNET_OK == 468 ((GNUNET_OK ==
464 GNUNET_CONFIGURATION_get_value_string (cfg, "nat", "INTERNAL_ADDRESS", 469 GNUNET_CONFIGURATION_get_value_string (cfg, "nat", "INTERNAL_ADDRESS",
@@ -466,8 +471,9 @@ test_icmp_client (struct GNUNET_SetupAutoContext *ac)
466 (GNUNET_YES != 471 (GNUNET_YES !=
467 GNUNET_CONFIGURATION_get_value_yesno (cfg, "nat", "BEHIND_NAT")) && 472 GNUNET_CONFIGURATION_get_value_yesno (cfg, "nat", "BEHIND_NAT")) &&
468 (GNUNET_YES == 473 (GNUNET_YES ==
469 GNUNET_OS_check_helper_binary ("gnunet-helper-nat-client"))); 474 GNUNET_OS_check_helper_binary (binary)));
470 GNUNET_free_non_null (tmp); 475 GNUNET_free_non_null (tmp);
476 GNUNET_free (binary);
471 button = 477 button =
472 GTK_TOGGLE_BUTTON (GNUNET_SETUP_get_object 478 GTK_TOGGLE_BUTTON (GNUNET_SETUP_get_object
473 ("GNUNET_setup_transport_icmp_client_enable_checkbutton")); 479 ("GNUNET_setup_transport_icmp_client_enable_checkbutton"));