gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r26894 - in gnunet: contrib src/dns src/exit src/gns src/na


From: gnunet
Subject: [GNUnet-SVN] r26894 - in gnunet: contrib src/dns src/exit src/gns src/nat src/pt src/transport src/util src/vpn
Date: Mon, 15 Apr 2013 17:00:53 +0200

Author: grothoff
Date: 2013-04-15 17:00:53 +0200 (Mon, 15 Apr 2013)
New Revision: 26894

Modified:
   gnunet/contrib/timeout_watchdog_w32.c
   gnunet/src/dns/gnunet-service-dns.c
   gnunet/src/exit/gnunet-daemon-exit.c
   gnunet/src/gns/test_gns_proxy.c
   gnunet/src/nat/nat.c
   gnunet/src/nat/nat_auto.c
   gnunet/src/nat/nat_mini.c
   gnunet/src/nat/test_nat_test.c
   gnunet/src/pt/test_gns_vpn.c
   gnunet/src/pt/test_gnunet_vpn.c
   gnunet/src/transport/plugin_transport_wlan.c
   gnunet/src/util/os_priority.c
   gnunet/src/vpn/gnunet-service-vpn.c
Log:
-no boolean

Modified: gnunet/contrib/timeout_watchdog_w32.c
===================================================================
--- gnunet/contrib/timeout_watchdog_w32.c       2013-04-15 14:56:11 UTC (rev 
26893)
+++ gnunet/contrib/timeout_watchdog_w32.c       2013-04-15 15:00:53 UTC (rev 
26894)
@@ -150,7 +150,7 @@
   memset (&start, 0, sizeof (start));
   start.cb = sizeof (start);
 
-  if (!CreateProcessW (wpath, wcmd, NULL, NULL, TRUE, CREATE_SUSPENDED,
+  if (!CreateProcessW (wpath, wcmd, NULL, NULL, GNUNET_YES, CREATE_SUSPENDED,
        NULL, NULL, &start, &proc))
   {
     wprintf (L"Failed to get spawn process `%s' with arguments `%s': %lu\n", 
wpath, wcmd, GetLastError ());

Modified: gnunet/src/dns/gnunet-service-dns.c
===================================================================
--- gnunet/src/dns/gnunet-service-dns.c 2013-04-15 14:56:11 UTC (rev 26893)
+++ gnunet/src/dns/gnunet-service-dns.c 2013-04-15 15:00:53 UTC (rev 26894)
@@ -1043,7 +1043,7 @@
   cfg = cfg_;
   binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-dns");
   if (GNUNET_YES !=
-      GNUNET_OS_check_helper_binary (binary, TRUE, NULL))
+      GNUNET_OS_check_helper_binary (binary, GNUNET_YES, NULL))
   {
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
                _("`%s' must be installed SUID, refusing to run\n"),

Modified: gnunet/src/exit/gnunet-daemon-exit.c
===================================================================
--- gnunet/src/exit/gnunet-daemon-exit.c        2013-04-15 14:56:11 UTC (rev 
26893)
+++ gnunet/src/exit/gnunet-daemon-exit.c        2013-04-15 15:00:53 UTC (rev 
26894)
@@ -3344,7 +3344,7 @@
   {
     binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-exit");
     if (GNUNET_YES !=
-       GNUNET_OS_check_helper_binary (binary, TRUE, NULL)) // FIXME: CF: add 
test-parameters
+       GNUNET_OS_check_helper_binary (binary, GNUNET_YES, NULL)) // FIXME: CF: 
add test-parameters
     {
       GNUNET_free (binary);
       GNUNET_log (GNUNET_ERROR_TYPE_ERROR,

Modified: gnunet/src/gns/test_gns_proxy.c
===================================================================
--- gnunet/src/gns/test_gns_proxy.c     2013-04-15 14:56:11 UTC (rev 26893)
+++ gnunet/src/gns/test_gns_proxy.c     2013-04-15 15:00:53 UTC (rev 26894)
@@ -446,13 +446,13 @@
 {
   char *binary;
 
-  if (GNUNET_SYSERR == GNUNET_OS_check_helper_binary ("gnunet-gns-proxy", 
FALSE, NULL))
+  if (GNUNET_SYSERR == GNUNET_OS_check_helper_binary ("gnunet-gns-proxy", 
GNUNET_NO, NULL))
   {
     fprintf (stderr, "Proxy binary not in PATH... skipping!\n");
     return 0;
   }
   binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-dns");
-  if (GNUNET_YES != GNUNET_OS_check_helper_binary (binary, TRUE, NULL))
+  if (GNUNET_YES != GNUNET_OS_check_helper_binary (binary, GNUNET_YES, NULL))
   {
     fprintf (stderr, "DNS helper binary has wrong permissions... skipping!\n");
     GNUNET_free (binary);

Modified: gnunet/src/nat/nat.c
===================================================================
--- gnunet/src/nat/nat.c        2013-04-15 14:56:11 UTC (rev 26893)
+++ gnunet/src/nat/nat.c        2013-04-15 15:00:53 UTC (rev 26894)
@@ -1171,7 +1171,7 @@
   binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-nat-server");
   if ((h->behind_nat == GNUNET_YES) && (GNUNET_YES == h->enable_nat_server) &&
       (GNUNET_YES !=
-       GNUNET_OS_check_helper_binary (binary, TRUE, NULL))) // FIXME: CF: add 
test-parameters
+       GNUNET_OS_check_helper_binary (binary, GNUNET_YES, NULL))) // FIXME: 
CF: add test-parameters
   {
     h->enable_nat_server = GNUNET_NO;
     LOG (GNUNET_ERROR_TYPE_WARNING,
@@ -1183,7 +1183,7 @@
   binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-nat-client");
   if ((GNUNET_YES == h->enable_nat_client) &&
       (GNUNET_YES !=
-       GNUNET_OS_check_helper_binary (binary, TRUE, NULL))) // FIXME: CF: add 
test-parameters
+       GNUNET_OS_check_helper_binary (binary, GNUNET_YES, NULL))) // FIXME: 
CF: add test-parameters
   {
     h->enable_nat_client = GNUNET_NO;
     LOG (GNUNET_ERROR_TYPE_WARNING,

Modified: gnunet/src/nat/nat_auto.c
===================================================================
--- gnunet/src/nat/nat_auto.c   2013-04-15 14:56:11 UTC (rev 26893)
+++ gnunet/src/nat/nat_auto.c   2013-04-15 15:00:53 UTC (rev 26894)
@@ -392,7 +392,7 @@
 
   /* test if upnpc is available */
   have_upnpc = (GNUNET_SYSERR !=
-               GNUNET_OS_check_helper_binary ("upnpc", FALSE, NULL));
+               GNUNET_OS_check_helper_binary ("upnpc", GNUNET_NO, NULL));
   /* FIXME: test if upnpc is actually working, that is, if transports
      start to work once we use UPnP */
   GNUNET_log (GNUNET_ERROR_TYPE_INFO,
@@ -426,7 +426,7 @@
        (GNUNET_YES ==
         GNUNET_CONFIGURATION_get_value_yesno (ah->cfg, "nat", "BEHIND_NAT")) &&
        (GNUNET_YES ==
-        GNUNET_OS_check_helper_binary (binary, TRUE, NULL))); // FIXME: CF: 
add test-parameters
+        GNUNET_OS_check_helper_binary (binary, GNUNET_YES, NULL))); // FIXME: 
CF: add test-parameters
   GNUNET_free_non_null (tmp);
   GNUNET_free (binary);
   GNUNET_log (GNUNET_ERROR_TYPE_INFO,
@@ -461,7 +461,7 @@
        (GNUNET_YES !=
         GNUNET_CONFIGURATION_get_value_yesno (ah->cfg, "nat", "BEHIND_NAT")) &&
        (GNUNET_YES ==
-        GNUNET_OS_check_helper_binary (binary, TRUE, NULL))); // FIXME: CF: 
add test-parameters
+        GNUNET_OS_check_helper_binary (binary, GNUNET_YES, NULL))); // FIXME: 
CF: add test-parameters
   GNUNET_free_non_null (tmp);
   GNUNET_free (binary);
   GNUNET_log (GNUNET_ERROR_TYPE_INFO,

Modified: gnunet/src/nat/nat_mini.c
===================================================================
--- gnunet/src/nat/nat_mini.c   2013-04-15 14:56:11 UTC (rev 26893)
+++ gnunet/src/nat/nat_mini.c   2013-04-15 15:00:53 UTC (rev 26894)
@@ -164,7 +164,7 @@
 {
   struct GNUNET_NAT_ExternalHandle *eh;
 
-  if (GNUNET_SYSERR == GNUNET_OS_check_helper_binary ("external-ip", FALSE, 
NULL))
+  if (GNUNET_SYSERR == GNUNET_OS_check_helper_binary ("external-ip", 
GNUNET_NO, NULL))
   {
     LOG (GNUNET_ERROR_TYPE_INFO,
         _("`external-ip' command not found\n"));
@@ -499,7 +499,7 @@
   struct GNUNET_NAT_MiniHandle *ret;
   char pstr[6];
 
-  if (GNUNET_SYSERR == GNUNET_OS_check_helper_binary ("upnpc", FALSE, NULL))
+  if (GNUNET_SYSERR == GNUNET_OS_check_helper_binary ("upnpc", GNUNET_NO, 
NULL))
   {
     LOG (GNUNET_ERROR_TYPE_INFO,
         _("`upnpc' command not found\n"));

Modified: gnunet/src/nat/test_nat_test.c
===================================================================
--- gnunet/src/nat/test_nat_test.c      2013-04-15 14:56:11 UTC (rev 26893)
+++ gnunet/src/nat/test_nat_test.c      2013-04-15 15:00:53 UTC (rev 26894)
@@ -92,7 +92,7 @@
                     "WARNING",
                     NULL);
 
-  nat_res = GNUNET_OS_check_helper_binary ("gnunet-nat-server", FALSE, NULL);
+  nat_res = GNUNET_OS_check_helper_binary ("gnunet-nat-server", GNUNET_NO, 
NULL);
   if (GNUNET_SYSERR == nat_res)
   {
     GNUNET_log (GNUNET_ERROR_TYPE_WARNING,

Modified: gnunet/src/pt/test_gns_vpn.c
===================================================================
--- gnunet/src/pt/test_gns_vpn.c        2013-04-15 14:56:11 UTC (rev 26893)
+++ gnunet/src/pt/test_gns_vpn.c        2013-04-15 15:00:53 UTC (rev 26894)
@@ -543,11 +543,11 @@
   bin_dns = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-dns");
   if ( (0 != geteuid ()) &&
        ( (GNUNET_YES !=
-         GNUNET_OS_check_helper_binary (bin_vpn, TRUE, NULL)) ||
+         GNUNET_OS_check_helper_binary (bin_vpn, GNUNET_YES, NULL)) ||
         (GNUNET_YES !=
-         GNUNET_OS_check_helper_binary (bin_exit, TRUE, NULL)) ||
+         GNUNET_OS_check_helper_binary (bin_exit, GNUNET_YES, NULL)) ||
         (GNUNET_YES !=
-         GNUNET_OS_check_helper_binary (bin_dns, TRUE, NULL))) )
+         GNUNET_OS_check_helper_binary (bin_dns, GNUNET_YES, NULL))) )
   {    
     fprintf (stderr,
             "WARNING: gnunet-helper-{exit,vpn,dns} binaries in $PATH are not 
SUID, refusing to run test (as it would have to fail).\n");

Modified: gnunet/src/pt/test_gnunet_vpn.c
===================================================================
--- gnunet/src/pt/test_gnunet_vpn.c     2013-04-15 14:56:11 UTC (rev 26893)
+++ gnunet/src/pt/test_gnunet_vpn.c     2013-04-15 15:00:53 UTC (rev 26894)
@@ -414,8 +414,8 @@
   exit_binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-exit.exe");
   fprintf (stderr,"%s\n", vpn_binary);
   fprintf (stderr,"%s\n", exit_binary);
-  if ((GNUNET_YES != (ret = GNUNET_OS_check_helper_binary (vpn_binary, TRUE, 
NULL))) || // FIXME: CF: add test-parameters
-      (GNUNET_YES != (ret = GNUNET_OS_check_helper_binary (exit_binary, TRUE, 
NULL)))) // FIXME: CF: add test-parameters
+  if ((GNUNET_YES != (ret = GNUNET_OS_check_helper_binary (vpn_binary, 
GNUNET_YES, NULL))) || // FIXME: CF: add test-parameters
+      (GNUNET_YES != (ret = GNUNET_OS_check_helper_binary (exit_binary, 
GNUNET_YES, NULL)))) // FIXME: CF: add test-parameters
   {
     GNUNET_free (vpn_binary);
     GNUNET_free (exit_binary);

Modified: gnunet/src/transport/plugin_transport_wlan.c
===================================================================
--- gnunet/src/transport/plugin_transport_wlan.c        2013-04-15 14:56:11 UTC 
(rev 26893)
+++ gnunet/src/transport/plugin_transport_wlan.c        2013-04-15 15:00:53 UTC 
(rev 26894)
@@ -1739,7 +1739,7 @@
   }
   binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-transport-wlan");
   if ( (0 == testmode) &&
-       (GNUNET_YES != GNUNET_OS_check_helper_binary (binary, TRUE, NULL)) )
+       (GNUNET_YES != GNUNET_OS_check_helper_binary (binary, GNUNET_YES, 
NULL)) )
   {
     LOG (GNUNET_ERROR_TYPE_ERROR,
         _("Helper binary `%s' not SUID, cannot run WLAN transport\n"),

Modified: gnunet/src/util/os_priority.c
===================================================================
--- gnunet/src/util/os_priority.c       2013-04-15 14:56:11 UTC (rev 26893)
+++ gnunet/src/util/os_priority.c       2013-04-15 15:00:53 UTC (rev 26894)
@@ -634,7 +634,7 @@
   int fd_stdin_read;
   int fd_stdin_write;
 
-  if (GNUNET_SYSERR == GNUNET_OS_check_helper_binary (filename, FALSE, NULL))
+  if (GNUNET_SYSERR == GNUNET_OS_check_helper_binary (filename, GNUNET_NO, 
NULL))
     return NULL; /* not executable */
   if (GNUNET_YES == pipe_control)
   {
@@ -865,7 +865,7 @@
   BOOL bresult;
   DWORD error_code;
 
-  if (GNUNET_SYSERR == GNUNET_OS_check_helper_binary (filename, FALSE, NULL))
+  if (GNUNET_SYSERR == GNUNET_OS_check_helper_binary (filename, GNUNET_NO, 
NULL))
     return NULL; /* not executable */
  
   /* Search in prefix dir (hopefully - the directory from which
@@ -1162,7 +1162,7 @@
     return NULL;
   }
 
-  bresult = CreateProcessW (wpath, wcmd, NULL, NULL, TRUE,
+  bresult = CreateProcessW (wpath, wcmd, NULL, NULL, GNUNET_YES,
        DETACHED_PROCESS | CREATE_SUSPENDED, env_block, NULL, &start, &proc);
   error_code = GetLastError ();
 

Modified: gnunet/src/vpn/gnunet-service-vpn.c
===================================================================
--- gnunet/src/vpn/gnunet-service-vpn.c 2013-04-15 14:56:11 UTC (rev 26893)
+++ gnunet/src/vpn/gnunet-service-vpn.c 2013-04-15 15:00:53 UTC (rev 26894)
@@ -3062,7 +3062,7 @@
   binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-vpn");
 
   if (GNUNET_YES !=
-      GNUNET_OS_check_helper_binary (binary, TRUE, NULL)) // FIXME: CF: add 
test-parameters
+      GNUNET_OS_check_helper_binary (binary, GNUNET_YES, NULL)) // FIXME: CF: 
add test-parameters
   {
     fprintf (stderr,
             "`%s' is not SUID, refusing to run.\n",




reply via email to

[Prev in Thread] Current Thread [Next in Thread]