From 25ef0f44a4d150d8a3571906475ed3d567ee7f4a Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sun, 15 Dec 2019 20:13:04 +0000 Subject: GNU/Hurd: handle platform-specific behaviour of setgroups() --- src/OS/os.h-GNU | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/OS') diff --git a/src/OS/os.h-GNU b/src/OS/os.h-GNU index 44993163d..1de2e3e84 100644 --- a/src/OS/os.h-GNU +++ b/src/OS/os.h-GNU @@ -20,4 +20,8 @@ typedef struct flock flock_t; /* default is non-const */ #define ICONV_ARG2_TYPE const char ** +/* setgroups(0, NULL) succeeds, and drops the gid group +as well as any supplementary groups*/ +#define OS_SETGROUPS_ZERO_DROPS_ALL + /* End */ -- cgit v1.2.3