diff options
author | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-04-15 12:36:37 +0000 |
---|---|---|
committer | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-04-15 12:36:37 +0000 |
commit | ad68ae150f17cf6e0b2c605c9331cf0aedfce1d0 (patch) | |
tree | 9079e9ce1b942683e45f2f5212fe2f9ce1bd5d56 /src/gns/test_gns_proxy.c | |
parent | fbda84a3f00a667f4b149f00f9a7d330e5db54a8 (diff) | |
download | gnunet-ad68ae150f17cf6e0b2c605c9331cf0aedfce1d0.tar.gz gnunet-ad68ae150f17cf6e0b2c605c9331cf0aedfce1d0.zip |
extended the GNUNET_OS_check_helper_binary parameters to do previlege
checking in windows. To do so, tested binaries must still be supplied
with valid commandline arguments, but on windows gnunet will utilize the
-d flag to run the programs initialization phase or privileged
operations only. In these modes, a program will not enter its mainloop
or communicate with the outside.
updated relevant function calls gnunet-wide to meet the extended
function parameters.
Diffstat (limited to 'src/gns/test_gns_proxy.c')
-rw-r--r-- | src/gns/test_gns_proxy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gns/test_gns_proxy.c b/src/gns/test_gns_proxy.c index 1b904cec9..68830ca7f 100644 --- a/src/gns/test_gns_proxy.c +++ b/src/gns/test_gns_proxy.c | |||
@@ -446,13 +446,13 @@ main (int argc, char *const *argv) | |||
446 | { | 446 | { |
447 | char *binary; | 447 | char *binary; |
448 | 448 | ||
449 | if (GNUNET_SYSERR == GNUNET_OS_check_helper_binary ("gnunet-gns-proxy")) | 449 | if (GNUNET_SYSERR == GNUNET_OS_check_helper_binary ("gnunet-gns-proxy", FALSE, NULL)) |
450 | { | 450 | { |
451 | fprintf (stderr, "Proxy binary not in PATH... skipping!\n"); | 451 | fprintf (stderr, "Proxy binary not in PATH... skipping!\n"); |
452 | return 0; | 452 | return 0; |
453 | } | 453 | } |
454 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-dns"); | 454 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-dns"); |
455 | if (GNUNET_YES != GNUNET_OS_check_helper_binary (binary)) | 455 | if (GNUNET_YES != GNUNET_OS_check_helper_binary (binary, TRUE, NULL)) |
456 | { | 456 | { |
457 | fprintf (stderr, "DNS helper binary has wrong permissions... skipping!\n"); | 457 | fprintf (stderr, "DNS helper binary has wrong permissions... skipping!\n"); |
458 | GNUNET_free (binary); | 458 | GNUNET_free (binary); |