fprintf (stderr,
"Executable iptables not found in approved directories: %s, skipping\n",
strerror (errno));
- return 0;
+ return 77;
}
if (0 != fork_and_exec (sbin_iptables, iptables_args))
{
fprintf (stderr,
"Failed to run `iptables -t mangle -L -v'. Skipping test.\n");
- return 0;
+ return 77;
}
if (0 != ACCESS ("/dev/net/tun", R_OK))
"/dev/net/tun");
fprintf (stderr,
"WARNING: System unable to run test, skipping.\n");
- return 0;
+ return 77;
}
bin_vpn = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-vpn");
GNUNET_free (bin_exit);
GNUNET_free (bin_dns);
GNUNET_free (srv_dns);
- return 0;
+ return 77;
}
GNUNET_free (bin_vpn);
GNUNET_free (bin_exit);
(0 == (S_ISUID & s.st_mode)) || (0 != getuid()) );
GNUNET_free (bin_dns);
GNUNET_free (srv_dns);
- return 0;
+ return 77;
}
if ( (0 != stat (srv_dns, &s)) ||
(my_gid == s.st_gid) ||
(0 == (S_ISGID & s.st_mode)) );
GNUNET_free (bin_dns);
GNUNET_free (srv_dns);
- return 0;
+ return 77;
}
GNUNET_free (bin_dns);
GNUNET_free (srv_dns);
{
fprintf (stderr,
"Required address families not supported by this system, skipping test.\n");
- return 0;
+ return 77;
}
if (0 != curl_global_init (CURL_GLOBAL_WIN32))
{
const char *bin;
char *vpn_binary;
char *exit_binary;
- int ret=0;
+ int ret = 0;
#ifndef MINGW
if (0 != ACCESS ("/dev/net/tun", R_OK))
"/dev/net/tun");
fprintf (stderr,
"WARNING: System unable to run test, skipping.\n");
- return 0;
+ return 77;
}
#endif
vpn_binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-vpn");
GNUNET_free (exit_binary);
fprintf (stderr,
"WARNING: gnunet-helper-{exit,vpn} binaries are not SUID, refusing to run test (as it would have to fail). %d\n", ret);
- return 0;
+ return 77;
}
GNUNET_free (vpn_binary);