From ad68ae150f17cf6e0b2c605c9331cf0aedfce1d0 Mon Sep 17 00:00:00 2001 From: Christian Fuchs Date: Mon, 15 Apr 2013 12:36:37 +0000 Subject: 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. --- src/dns/gnunet-service-dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dns/gnunet-service-dns.c') diff --git a/src/dns/gnunet-service-dns.c b/src/dns/gnunet-service-dns.c index d1689f4d2..a2d5354de 100644 --- a/src/dns/gnunet-service-dns.c +++ b/src/dns/gnunet-service-dns.c @@ -1043,7 +1043,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, cfg = cfg_; binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-dns"); if (GNUNET_YES != - GNUNET_OS_check_helper_binary (binary)) + GNUNET_OS_check_helper_binary (binary, TRUE, NULL)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, _("`%s' must be installed SUID, refusing to run\n"), -- cgit v1.2.3