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/dns/gnunet-service-dns.c | |
parent | 8a3f6ada0a51722084e8ff7b8d9463f51e5d2cbe (diff) | |
download | gnunet-159da73869b11137dd8c12c14266f1a2e18f223b.tar.gz gnunet-159da73869b11137dd8c12c14266f1a2e18f223b.zip |
-check for helpers in libexec
Diffstat (limited to 'src/dns/gnunet-service-dns.c')
-rw-r--r-- | src/dns/gnunet-service-dns.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/dns/gnunet-service-dns.c b/src/dns/gnunet-service-dns.c index aaa5f3dd1..5db14c56a 100644 --- a/src/dns/gnunet-service-dns.c +++ b/src/dns/gnunet-service-dns.c | |||
@@ -1272,18 +1272,21 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
1272 | struct in_addr dns_exit4; | 1272 | struct in_addr dns_exit4; |
1273 | struct in6_addr dns_exit6; | 1273 | struct in6_addr dns_exit6; |
1274 | char *dns_exit; | 1274 | char *dns_exit; |
1275 | char *binary; | ||
1275 | 1276 | ||
1276 | cfg = cfg_; | 1277 | cfg = cfg_; |
1278 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-dns"); | ||
1277 | if (GNUNET_YES != | 1279 | if (GNUNET_YES != |
1278 | GNUNET_OS_check_helper_binary ("gnunet-helper-dns")) | 1280 | GNUNET_OS_check_helper_binary (binary)) |
1279 | { | 1281 | { |
1280 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 1282 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
1281 | _("`%s' must be installed SUID, refusing to run\n"), | 1283 | _("`%s' must be installed SUID, refusing to run\n"), |
1282 | "gnunet-helper-dns"); | 1284 | binary); |
1283 | global_ret = 1; | 1285 | global_ret = 1; |
1286 | GNUNET_free (binary); | ||
1284 | return; | 1287 | return; |
1285 | } | 1288 | } |
1286 | 1289 | GNUNET_free (binary); | |
1287 | stats = GNUNET_STATISTICS_create ("dns", cfg); | 1290 | stats = GNUNET_STATISTICS_create ("dns", cfg); |
1288 | nc = GNUNET_SERVER_notification_context_create (server, 1); | 1291 | nc = GNUNET_SERVER_notification_context_create (server, 1); |
1289 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &cleanup_task, | 1292 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &cleanup_task, |