aboutsummaryrefslogtreecommitdiff
path: root/src/exit
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-11-01 22:18:42 +0000
committerChristian Grothoff <christian@grothoff.org>2012-11-01 22:18:42 +0000
commit0c4dec07cadc333a3a1eaca9e8dbac827185e4e7 (patch)
tree2c40d7555130a1d19be85931ac6c75ffdf6f08b8 /src/exit
parente5b30eb25d2994dc45f7944c5b0f1ce129cd41c5 (diff)
downloadgnunet-0c4dec07cadc333a3a1eaca9e8dbac827185e4e7.tar.gz
gnunet-0c4dec07cadc333a3a1eaca9e8dbac827185e4e7.zip
-more libexec fixes
Diffstat (limited to 'src/exit')
-rw-r--r--src/exit/gnunet-daemon-exit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/exit/gnunet-daemon-exit.c b/src/exit/gnunet-daemon-exit.c
index a8c8d8922..30be57845 100644
--- a/src/exit/gnunet-daemon-exit.c
+++ b/src/exit/gnunet-daemon-exit.c
@@ -2999,16 +2999,20 @@ run (void *cls, char *const *args GNUNET_UNUSED,
2999 char *ipv6prefix_s; 2999 char *ipv6prefix_s;
3000 char *ipv4addr; 3000 char *ipv4addr;
3001 char *ipv4mask; 3001 char *ipv4mask;
3002 char *binary;
3002 3003
3004 binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-exit");
3003 if (GNUNET_YES != 3005 if (GNUNET_YES !=
3004 GNUNET_OS_check_helper_binary ("gnunet-helper-exit")) 3006 GNUNET_OS_check_helper_binary (binary))
3005 { 3007 {
3008 GNUNET_free (binary);
3006 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 3009 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
3007 _("`%s' must be installed SUID, refusing to run\n"), 3010 _("`%s' must be installed SUID, refusing to run\n"),
3008 "gnunet-helper-exit"); 3011 "gnunet-helper-exit");
3009 global_ret = 1; 3012 global_ret = 1;
3010 return; 3013 return;
3011 } 3014 }
3015 GNUNET_free (binary);
3012 cfg = cfg_; 3016 cfg = cfg_;
3013 stats = GNUNET_STATISTICS_create ("exit", cfg); 3017 stats = GNUNET_STATISTICS_create ("exit", cfg);
3014 ipv4_exit = GNUNET_CONFIGURATION_get_value_yesno (cfg, "exit", "EXIT_IPV4"); 3018 ipv4_exit = GNUNET_CONFIGURATION_get_value_yesno (cfg, "exit", "EXIT_IPV4");