[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -cleanup
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -cleanup |
Date: |
Mon, 01 Nov 2021 09:14:50 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 328047f8e -cleanup
328047f8e is described below
commit 328047f8ee926055be593f180de40885823a7988
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Nov 1 09:14:42 2021 +0100
-cleanup
---
src/include/gnunet_os_lib.h | 4 ++--
src/util/os_installation.c | 20 ++------------------
2 files changed, 4 insertions(+), 20 deletions(-)
diff --git a/src/include/gnunet_os_lib.h b/src/include/gnunet_os_lib.h
index 749f766d2..eddf97dab 100644
--- a/src/include/gnunet_os_lib.h
+++ b/src/include/gnunet_os_lib.h
@@ -672,9 +672,9 @@ GNUNET_OS_install_parent_control_handler (void *cls);
* #GNUNET_NO if not SUID (but binary exists),
* #GNUNET_SYSERR on error (no such binary or not executable)
*/
-int
+enum GNUNET_GenericReturnValue
GNUNET_OS_check_helper_binary (const char *binary,
- int check_suid,
+ bool check_suid,
const char *params);
diff --git a/src/util/os_installation.c b/src/util/os_installation.c
index f15e1871a..171bb5baa 100644
--- a/src/util/os_installation.c
+++ b/src/util/os_installation.c
@@ -754,25 +754,9 @@ GNUNET_OS_get_suid_binary_path (const struct
GNUNET_CONFIGURATION_Handle *cfg,
}
-/**
- * Check whether an executable exists and possibly if the suid bit is
- * set on the file. Attempts to find the file using the current PATH
- * environment variable as a search path.
- *
- * @param binary the name of the file to check.
- * W32: must not have an .exe suffix.
- * @param check_suid input true if the binary should be checked for SUID (*nix)
- * W32: checks if the program has sufficient privileges by executing
this
- * binary with the -d flag. -d omits a programs main loop and only
- * executes all privileged operations in an binary.
- * @param params parameters used for w32 privilege checking (can be NULL for
!= w32 )
- * @return #GNUNET_YES if the file is SUID (*nix) or can be executed with
current privileges (W32),
- * #GNUNET_NO if not SUID (but binary exists),
- * #GNUNET_SYSERR on error (no such binary or not executable)
- */
-int
+enum GNUNET_GenericReturnValue
GNUNET_OS_check_helper_binary (const char *binary,
- int check_suid,
+ bool check_suid,
const char *params)
{
struct stat statbuf;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: -cleanup,
gnunet <=