[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r24670 - in gnunet/src: exit pt
From: |
gnunet |
Subject: |
[GNUnet-SVN] r24670 - in gnunet/src: exit pt |
Date: |
Thu, 1 Nov 2012 23:18:42 +0100 |
Author: grothoff
Date: 2012-11-01 23:18:42 +0100 (Thu, 01 Nov 2012)
New Revision: 24670
Modified:
gnunet/src/exit/gnunet-daemon-exit.c
gnunet/src/pt/test_gnunet_vpn.c
Log:
-more libexec fixes
Modified: gnunet/src/exit/gnunet-daemon-exit.c
===================================================================
--- gnunet/src/exit/gnunet-daemon-exit.c 2012-11-01 22:03:59 UTC (rev
24669)
+++ gnunet/src/exit/gnunet-daemon-exit.c 2012-11-01 22:18:42 UTC (rev
24670)
@@ -2999,16 +2999,20 @@
char *ipv6prefix_s;
char *ipv4addr;
char *ipv4mask;
+ char *binary;
+ binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-exit");
if (GNUNET_YES !=
- GNUNET_OS_check_helper_binary ("gnunet-helper-exit"))
+ GNUNET_OS_check_helper_binary (binary))
{
+ GNUNET_free (binary);
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
_("`%s' must be installed SUID, refusing to run\n"),
"gnunet-helper-exit");
global_ret = 1;
return;
}
+ GNUNET_free (binary);
cfg = cfg_;
stats = GNUNET_STATISTICS_create ("exit", cfg);
ipv4_exit = GNUNET_CONFIGURATION_get_value_yesno (cfg, "exit", "EXIT_IPV4");
Modified: gnunet/src/pt/test_gnunet_vpn.c
===================================================================
--- gnunet/src/pt/test_gnunet_vpn.c 2012-11-01 22:03:59 UTC (rev 24669)
+++ gnunet/src/pt/test_gnunet_vpn.c 2012-11-01 22:18:42 UTC (rev 24670)
@@ -395,6 +395,8 @@
{
const char *type;
const char *bin;
+ char *vpn_binary;
+ char *exit_binary;
if (0 != ACCESS ("/dev/net/tun", R_OK))
{
@@ -403,15 +405,19 @@
fprintf (stderr, "WARNING: System unable to run test, skipping.\n");
return 0;
}
- if ((GNUNET_YES != GNUNET_OS_check_helper_binary ("gnunet-helper-vpn")) ||
- (GNUNET_YES != GNUNET_OS_check_helper_binary ("gnunet-helper-exit")))
+ vpn_binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-vpn");
+ exit_binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-exit");
+ if ((GNUNET_YES != GNUNET_OS_check_helper_binary (vpn_binary)) ||
+ (GNUNET_YES != GNUNET_OS_check_helper_binary (exit_binary)))
{
+ GNUNET_free (vpn_binary);
+ GNUNET_free (exit_binary);
fprintf (stderr,
- "WARNING: gnunet-helper-{exit,vpn} binaries in $PATH are not
SUID, refusing to run test (as it would have to fail).\n");
- fprintf (stderr,
- "Change $PATH ('.' in $PATH before $GNUNET_PREFIX/bin is
problematic) or permissions (run 'make install' as root) to fix this!\n");
+ "WARNING: gnunet-helper-{exit,vpn} binaries are not SUID,
refusing to run test (as it would have to fail).\n");
return 0;
}
+ GNUNET_free (vpn_binary);
+ GNUNET_free (exit_binary);
GNUNET_CRYPTO_rsa_setup_hostkey ("test_gnunet_vpn.conf");
bin = argv[0];
if (NULL != strstr (bin, "lt-"))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r24670 - in gnunet/src: exit pt,
gnunet <=