aboutsummaryrefslogtreecommitdiff
path: root/src/vpn
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-06-04 10:57:03 +0000
committerChristian Grothoff <christian@grothoff.org>2014-06-04 10:57:03 +0000
commite1f074d4692f807c00902b415c0b139b16ea0b76 (patch)
treee1b74e2d696a2a9129ab79a871aba20cfe2a737e /src/vpn
parentf9cae638f0f5e6633868e14154dfd82421e5c39f (diff)
downloadgnunet-e1f074d4692f807c00902b415c0b139b16ea0b76.tar.gz
gnunet-e1f074d4692f807c00902b415c0b139b16ea0b76.zip
-use GNUNET_log, not fprintf
Diffstat (limited to 'src/vpn')
-rw-r--r--src/vpn/gnunet-service-vpn.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/vpn/gnunet-service-vpn.c b/src/vpn/gnunet-service-vpn.c
index 45da1f988..67c770716 100644
--- a/src/vpn/gnunet-service-vpn.c
+++ b/src/vpn/gnunet-service-vpn.c
@@ -2934,13 +2934,18 @@ run (void *cls,
2934 binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-vpn"); 2934 binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-vpn");
2935 2935
2936 if (GNUNET_YES != 2936 if (GNUNET_YES !=
2937 GNUNET_OS_check_helper_binary (binary, GNUNET_YES, "-d gnunet-vpn - - 169.1.3.3.7 255.255.255.0")) //ipv4 only please! 2937 GNUNET_OS_check_helper_binary (binary,
2938 GNUNET_YES,
2939 "-d gnunet-vpn - - 169.1.3.3.7 255.255.255.0")) //ipv4 only please!
2938 { 2940 {
2939 fprintf (stderr, 2941 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
2940 "`%s' is not SUID, refusing to run.\n", 2942 "`%s' is not SUID, refusing to run.\n",
2941 "gnunet-helper-vpn"); 2943 "gnunet-helper-vpn");
2942 GNUNET_free (binary); 2944 GNUNET_free (binary);
2943 global_ret = 1; 2945 global_ret = 1;
2946 /* we won't "really" exit here, as the 'service' is still running;
2947 however, as no handlers are registered, the service won't do
2948 anything either */
2944 return; 2949 return;
2945 } 2950 }
2946 GNUNET_free (binary); 2951 GNUNET_free (binary);